Compare commits
No commits in common. "0507bcd0c583e5b8c3cfbf030c99138ba8546535" and "b5129139f5fbb82ad47a0d120599820f23569e7c" have entirely different histories.
0507bcd0c5
...
b5129139f5
|
@ -1 +0,0 @@
|
||||||
*.swp
|
|
|
@ -1,9 +1,5 @@
|
||||||
# blog
|
# blog
|
||||||
|
|
||||||
the web log of vilmibm.
|
the web log of vilmibm
|
||||||
|
|
||||||
it's less than 100 lines of bash that takes a list of markdown files and creates:
|
WIP
|
||||||
|
|
||||||
* https://tilde.town/~vilmibm/blog
|
|
||||||
* gemini://tilde.town/~vilmibm/blog
|
|
||||||
* gopher://tilde.town/1/~vilmibm/blog
|
|
||||||
|
|
4
make.sh
4
make.sh
|
@ -6,8 +6,6 @@ pd=/usr/bin/pandoc
|
||||||
g=/bin/grep
|
g=/bin/grep
|
||||||
tr=/usr/bin/tr
|
tr=/usr/bin/tr
|
||||||
sed=/bin/sed
|
sed=/bin/sed
|
||||||
sort=/usr/bin/sort
|
|
||||||
|
|
||||||
postDir=/home/vilmibm/blog/posts
|
postDir=/home/vilmibm/blog/posts
|
||||||
|
|
||||||
htmlDir=/home/vilmibm/public_html/blog
|
htmlDir=/home/vilmibm/public_html/blog
|
||||||
|
@ -41,7 +39,7 @@ echo >> $gopherIndex
|
||||||
echo "the gemblog of vilmibm as it were" > $geminiIndex
|
echo "the gemblog of vilmibm as it were" > $geminiIndex
|
||||||
echo >> $geminiIndex
|
echo >> $geminiIndex
|
||||||
|
|
||||||
for p in $(ls *.md | $sort -r)
|
for p in $(ls *.md)
|
||||||
do
|
do
|
||||||
pubdate=$($g "pubdate:" $p | $sed 's/pubdate: //')
|
pubdate=$($g "pubdate:" $p | $sed 's/pubdate: //')
|
||||||
title=$($g "title:" $p | $sed 's/title: //')
|
title=$($g "title:" $p | $sed 's/title: //')
|
||||||
|
|
Loading…
Reference in New Issue