bugfixes
parent
53ba526ca2
commit
626b0c3219
5
make.sh
5
make.sh
|
@ -69,7 +69,7 @@ do
|
||||||
pubdate=$(grep "pubdate:" $p | sed 's/pubdate: //')
|
pubdate=$(grep "pubdate:" $p | sed 's/pubdate: //')
|
||||||
title=$(grep "title:" $p | sed 's/title: //')
|
title=$(grep "title:" $p | sed 's/title: //')
|
||||||
slug=$(grep "slug:" $p | sed 's/slug: //' | tr -d \[:blank:\])
|
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}"
|
httpLink="https://tilde.town/~vilmibm/blog#${slug}"
|
||||||
if [ -z "$pubdate" ] || [ -z "$title" ] || [ -z "$slug" ] || [ -z "$summary" ]
|
if [ -z "$pubdate" ] || [ -z "$title" ] || [ -z "$slug" ] || [ -z "$summary" ]
|
||||||
then
|
then
|
||||||
|
@ -102,11 +102,12 @@ do
|
||||||
grep -Ev "$metadataKeys" $p | $lp --mode "gemini" >> $geminiPostPath
|
grep -Ev "$metadataKeys" $p | $lp --mode "gemini" >> $geminiPostPath
|
||||||
|
|
||||||
# RSS
|
# RSS
|
||||||
|
rfc822=$(date -d"$pubdate" +'%a, %d %b %Y %H:%M:%S %Z')
|
||||||
echo " <item>" >> $rssIndex
|
echo " <item>" >> $rssIndex
|
||||||
echo " <title>${title}</title>" >> $rssIndex
|
echo " <title>${title}</title>" >> $rssIndex
|
||||||
echo " <link>${httpLink}</link>" >> $rssIndex
|
echo " <link>${httpLink}</link>" >> $rssIndex
|
||||||
echo " <guid>${httpLink}</guid>" >> $rssIndex
|
echo " <guid>${httpLink}</guid>" >> $rssIndex
|
||||||
echo " <pubDate>${rfc822pubDate}</pubDate>" >> $rssIndex
|
echo " <pubDate>${rfc822}</pubDate>" >> $rssIndex
|
||||||
echo " <description>${summary}</description>" >> $rssIndex
|
echo " <description>${summary}</description>" >> $rssIndex
|
||||||
echo " </item>" >> $rssIndex
|
echo " </item>" >> $rssIndex
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue