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,8 +82,9 @@ fn blagh_body {
# An user can add this on their own using handlers_body_head anyway. # An user can add this on their own using handlers_body_head anyway.
if (! ~ $base_url 'https://gartzea.com') 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>' echo '<p><a href="index.rss">RSS Feed</a>, <a href="../.newsletter">subscribe per email</a>, <a href="../sitemap">all content</a></p>'
else 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 '<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>' # |<a href="index.atom">Atom Feed</a></div>'
# Markdown posts # Markdown posts