From 008fd84a8ea5f14d8d36fb7d55eccc53669a038f Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Wed, 8 Nov 2023 11:06:40 +0100 Subject: [PATCH] Update 2023-11-08 11:06:38 --- src/index.ps | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ps b/src/index.ps index 490186b..f916212 100644 --- a/src/index.ps +++ b/src/index.ps @@ -20,11 +20,12 @@ EOF # print list ls -r1 *.ps *.pm *.ph *.pa *.pt 2>/dev/null | fgrep -v '.draft.' | while read line do + DATE=$(echo "$line" | cut -d_ -f1 ) if [ $(echo "${line##*.}") == "pm" ] then - TITLE="$(head -1 "$line" | sed 's/^# //g')" + TITLE="$DATE - $(head -1 "$line" | sed 's/^# //g')" else - TITLE="$(echo "${line%%.*}" | tr '_' ' ')" + TITLE="$DATE - $(echo "${line%%.*}" | tr '_' ' ')" fi URI="posts/${line%.*}.html"