hugo-theme-flat/layouts/partials/footer.html

36 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2022-04-27 13:54:00 +00:00
<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" }}
2022-05-16 10:38:33 +00:00
<a class="footer-item" href="{{ .Permalink }}">
Feed of "{{ $term.Title }}"
2022-05-16 10:38:33 +00:00
<i class="icofont-rss"></i>
</a>
{{ end }}
{{ end }}
</div>
2022-04-27 13:54:00 +00:00
{{ 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>
2022-04-27 13:54:00 +00:00
{{ end }}
{{ end }}
</div>
{{ end }}
</footer>