Make rss link functional and only show up for sections that have one

This commit is contained in:
Joshua Goins 2022-09-08 17:40:01 -04:00
parent c0169434d5
commit eff8c23323

View file

@ -5,7 +5,13 @@ Copyright (c) 2022. <a href="https://git.sr.ht/~redstrate/redstrate.com/tree/mas
<img src="{{ .Permalink }}"> <img src="{{ .Permalink }}">
{{ end }} {{ end }}
{{ with .OutputFormats.Get "RSS" }}
<a href="{{ .RelPermalink }}">
{{ with resources.Get "rss-button.gif" }} {{ with resources.Get "rss-button.gif" }}
<img src="{{ .Permalink }}"> <img src="{{ .Permalink }}">
{{ end }} {{ end }}
</a>
{{ end }}
</div> </div>