do hacky if/if else

This commit is contained in:
Nuno Sempere 2023-06-26 12:32:12 +00:00
parent 2173603b0c
commit 39e830e1e1

View File

@ -82,9 +82,10 @@ fn blagh_body {
# An user can add this on their own using handlers_body_head anyway.
if (! ~ $base_url 'https://gartzea.com')
echo '<p><a href="index.rss">RSS Feed</a>, <a href="../.newsletter">subscribe per email</a>, <a href="../sitemap">all content</a></p>'
else
echo '<p><a href="index.rss">RSS</a>, <a href="../gaceta">gaceta</a>, <a href="../sitemap">todo</a></p>'
# |<a href="index.atom">Atom Feed</a></div>'
if (~ $base_url 'https://gartzea.com')
echo '<p><a href="index.rss">RSS</a>, <a href="../gaceta">gaceta</a>, <a href="../sitemap">todo</a></p>'
# echo "$base_url"
# |<a href="index.atom">Atom Feed</a></div>'
# Markdown posts
# XXX Not sure why this fixes issues with blog setup, probably bug in fltr_cache!