From 626b0c3219934670622d70cd73298ec50477c212 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Sun, 19 May 2024 22:16:07 +0000 Subject: [PATCH] bugfixes --- make.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/make.sh b/make.sh index 4c7e6a5..54cf8ad 100755 --- a/make.sh +++ b/make.sh @@ -69,7 +69,7 @@ do pubdate=$(grep "pubdate:" $p | sed 's/pubdate: //') title=$(grep "title:" $p | sed 's/title: //') slug=$(grep "slug:" $p | sed 's/slug: //' | tr -d \[:blank:\]) - summary=$(grep "summary:" $p | sed 's/summary: //' | tr -d \[:blank:\]) + summary=$(grep "summary:" $p | sed 's/summary: //') httpLink="https://tilde.town/~vilmibm/blog#${slug}" if [ -z "$pubdate" ] || [ -z "$title" ] || [ -z "$slug" ] || [ -z "$summary" ] then @@ -102,11 +102,12 @@ do grep -Ev "$metadataKeys" $p | $lp --mode "gemini" >> $geminiPostPath # RSS + rfc822=$(date -d"$pubdate" +'%a, %d %b %Y %H:%M:%S %Z') echo " " >> $rssIndex echo " ${title}" >> $rssIndex echo " ${httpLink}" >> $rssIndex echo " ${httpLink}" >> $rssIndex - echo " ${rfc822pubDate}" >> $rssIndex + echo " ${rfc822}" >> $rssIndex echo " ${summary}" >> $rssIndex echo " " >> $rssIndex fi