adds date to blog index
authorDaniel <thefekete@gmail.com>
Tue, 23 Jun 2020 22:24:39 +0000 (00:24 +0200)
committerDaniel <thefekete@gmail.com>
Tue, 23 Jun 2020 22:24:39 +0000 (00:24 +0200)
bin/blog_index

index 3038f39..5ed27ea 100755 (executable)
@@ -3,5 +3,6 @@
 echo -e "% Blog Index\n"
 for p in $(ls -r blog); do
        title=$(head -n1 "blog/$p" | sed 's/^% //')
-       echo -e "  * [${title}](${p%.*}.html)\n"
+       date="${p%%_*}"
+       echo -e "  * *${date}* [${title}](${p%.*}.html)\n"
 done