Update 2023-11-08 11:06:38

This commit is contained in:
c0dev0id 2023-11-08 11:06:40 +01:00
parent e2c984d2df
commit 008fd84a8e

View File

@ -20,11 +20,12 @@ EOF
# print list # print list
ls -r1 *.ps *.pm *.ph *.pa *.pt 2>/dev/null | fgrep -v '.draft.' | while read line ls -r1 *.ps *.pm *.ph *.pa *.pt 2>/dev/null | fgrep -v '.draft.' | while read line
do do
DATE=$(echo "$line" | cut -d_ -f1 )
if [ $(echo "${line##*.}") == "pm" ] if [ $(echo "${line##*.}") == "pm" ]
then then
TITLE="$(head -1 "$line" | sed 's/^# //g')" TITLE="$DATE - $(head -1 "$line" | sed 's/^# //g')"
else else
TITLE="$(echo "${line%%.*}" | tr '_' ' ')" TITLE="$DATE - $(echo "${line%%.*}" | tr '_' ' ')"
fi fi
URI="posts/${line%.*}.html" URI="posts/${line%.*}.html"