trunk
vilmibm 2024-05-19 22:16:07 +00:00
parent 53ba526ca2
commit 626b0c3219
1 changed files with 3 additions and 2 deletions

View File

@ -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 " <item>" >> $rssIndex
echo " <title>${title}</title>" >> $rssIndex
echo " <link>${httpLink}</link>" >> $rssIndex
echo " <guid>${httpLink}</guid>" >> $rssIndex
echo " <pubDate>${rfc822pubDate}</pubDate>" >> $rssIndex
echo " <pubDate>${rfc822}</pubDate>" >> $rssIndex
echo " <description>${summary}</description>" >> $rssIndex
echo " </item>" >> $rssIndex
fi