~prokop/rdck.dev

8160f90b2da516ad7645b84fa11c76296d4457ab — Prokop Randacek 1 year, 3 months ago 8f85d51
fix rss feed
2 files changed, 6 insertions(+), 2 deletions(-)

M build
M template.html
M build => build +5 -1
@@ 35,6 35,7 @@ function generate_rss() {

	echo "<rss version=\"2.0\">
<channel>
<description></description>
<title>rdck.dev</title>
<link>$LINK_PREFIX</link>
<language>en-us</language>


@@ 45,9 46,12 @@ function generate_rss() {
	do
		echo "<item>
<title>`get_title $f`</title>
<guid>$LINK_PREFIX/`get_url $f`</guid>
<link>$LINK_PREFIX/`get_url $f`</link>
<pubDate>`get_date2 $f`</pubDate>
<description>`mmtt < $f | lowdown`</description>
<description>
`mmtt < $f | pandoc -f markdown -t plain | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g'`
</description>
</item>" >> $RSSFEED
	done


M template.html => template.html +1 -1
@@ 22,7 22,7 @@
			{:: cat $CONTENT_HTML ::}
		</main>
		<footer>
			Made by me. <a href="https://git.sr.ht/~prokop/rdck.dev">source</a>. <a href="/rss.xml">rss feed</a>.
			Made by me. <a href="https://git.sr.ht/~prokop/rdck.dev"><img src="/assets/srht.svg"></a> <a href="/rss.xml"><img src="/assets/rss.svg"></a>
		</footer>
	</body>
</html>