share/rss.xml


<rss xmlns:atom='http://www.w3.org/2005/Atom' version='2.0'>
<channel>
<title>Andrew JV Powell</title>
<description>Updates from Andrew JV Powell.</description>
<language>en-us</language>
<link>https://www.andrewjvpowell.com/rss.xml</link>
<atom:link href='https://www.andrewjvpowell.com/rss.xml' rel='self' type='application/rss+xml'/>
#!
for f in $(ls -r articles/)
do
	unset publishedDate
	
	if test -f articles/$f/meta
	then
		. articles/$f/meta
	fi
	
	if [ ! "$publishedDate" = "" ]
	then
		pubDate="$publishedDate""T11:00:00Z"
	else
		pubDate="$(lmt -f '%Y-%m-%dT%H:%M:%SZ' "articles/$f" | cut -d' ' -f1)"
	fi
#!
<item>
	<title>$TITLE</title>
	<guid isPermaLink='false'>$1/articles/$(basename "$(echo $f | sed $STRIPPATTERN)")</guid>
	<link>$1/articles/$(basename "$(echo $f | sed $STRIPPATTERN)")</link>
	<pubDate>$pubDate</pubDate>
	<description>
	<![CDATA[ <p>
#!
smu articles/$f/*md
#!
	</p> ]]>
	</description>
</item>
#!
done
#!

...
//And so on...
...

</channel>
</rss>