aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 8ccb2c8..8167303 100755
--- a/build.sh
+++ b/build.sh
@@ -51,7 +51,7 @@ makeblog() {
51 for i in $(ls src/blog | sort -r); do 51 for i in $(ls src/blog | sort -r); do
52 if [ -d src/blog/$i ]; then 52 if [ -d src/blog/$i ]; then
53 f="src/blog/$i/*.md" 53 f="src/blog/$i/*.md"
54 d=$(grep -E '^[0-9]{4}-[0-9]{2}-[0-9]{2}$' $f) 54 d=$(echo $i | grep -oE '^[0-9]{4}-[0-9]{2}-[0-9]{2}')
55 t=$(head -n 1 $f | sed 's/# //') 55 t=$(head -n 1 $f | sed 's/# //')
56 echo "* $d [$t]($i)" >> $bf 56 echo "* $d [$t]($i)" >> $bf
57 57

Generated with cgit - Back to sebastiano.tronto.net