hugo-theme-flat/layouts/partials/footer.html
2022-05-16 18:38:33 +08:00

33 lines
1 KiB
HTML

<footer class="footer">
<div class="footer-row">
{{ if .IsHome }}
<a class="footer-item" href="{{ "/index.xml" | relURL }}">
The Site Feed
<i class="icofont-rss"></i>
</a>
{{ else }}
<a class="footer-item" href="{{ "/index.xml" | relURL }}">
The Site Feed
<i class="icofont-rss"></i>
</a>
{{ with .OutputFormats.Get "rss" }}
<a class="footer-item" href="{{ .Permalink }}">
The Taxonomy Feed
<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>