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