hugo-theme-flat/layouts/partials/footer.html
leafee98 0ce04d50c7 RSS of each section are always shown
the "Feed Of ALL" is removed and "Feed Of 'Section'" is always shown
2022-05-18 21:29:55 +08:00

36 lines
1.1 KiB
HTML

<footer class="footer">
<div class="footer-row">
{{ range .Site.Sections }}
{{ $section := . }}
{{ with .OutputFormats.Get "rss" }}
<a class="footer-item" href="{{ .Permalink }}">
Feed of {{ $section.Section | humanize }}
<i class="icofont-rss"></i>
</a>
{{ end }}
{{ end }}
{{ if not (or .IsHome .IsSection) }}
{{ $term := . }}
{{ with .OutputFormats.Get "rss" }}
<a class="footer-item" href="{{ .Permalink }}">
Feed of "{{ $term.Title }}"
<i class="icofont-rss"></i>
</a>
{{ end }}
{{ end }}
</div>
{{ range .Site.Params.footer_rows }}
<div class="footer-row">
{{ range .items }}
{{ with .pre }}
<span class="footer-item">{{ . | safeHTML }}</span>
{{ else }}
<a class="footer-item" href="{{ .url }}">{{ .name }}</a>
{{ end }}
{{ end }}
</div>
{{ end }}
</footer>