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

42 lines
1.4 KiB
HTML

<footer class="footer">
<div class="footer-row">
<a class="footer-item" href="{{ "/index.xml" | relURL }}">
Feed of ALL
<i class="icofont-rss"></i>
</a>
{{ if gt (len .Site.Sections) 1 }}
{{ range .Site.Sections }}
{{ $page := . }}
{{ with .OutputFormats.Get "rss" }}
<a class="footer-item" href="{{ .Permalink }}">
Feed of {{ with $page.Title }}{{ $page.Title }}{{ end }}
<i class="icofont-rss"></i>
</a>
{{ end }}
{{ end }}
{{ end }}
{{ if not (or .IsHome .IsSection) }}
{{ $page := . }}
{{ with .OutputFormats.Get "rss" }}
<a class="footer-item" href="{{ .Permalink }}">
Feed of "{{ with $page.Title }}{{ $page.Title }}{{ end }}"
<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>