projects
/
thefekete.net.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
431aa22
)
adds date to blog index
author
Daniel <thefekete@gmail.com>
Tue, 23 Jun 2020 22:24:39 +0000
(
00:24
+0200)
committer
Daniel <thefekete@gmail.com>
Tue, 23 Jun 2020 22:24:39 +0000
(
00:24
+0200)
bin/blog_index
patch
|
blob
|
history
diff --git
a/bin/blog_index
b/bin/blog_index
index
3038f39
..
5ed27ea
100755
(executable)
--- a/
bin/blog_index
+++ b/
bin/blog_index
@@
-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