summaryrefslogtreecommitdiff
path: root/layouts/partials/footer.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r--layouts/partials/footer.html25
1 files changed, 17 insertions, 8 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index a8c558f..77499e3 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,18 +1,27 @@
<footer class="footer">
<div class="footer-row">
- {{ if .IsHome }}
<a class="footer-item" href="{{ "/index.xml" | relURL }}">
- The Site Feed
+ Feed of ALL
<i class="icofont-rss"></i>
</a>
- {{ else }}
- <a class="footer-item" href="{{ "/index.xml" | relURL }}">
- The Site Feed
- <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 }}">
- The Taxonomy Feed
+ Feed of "{{ with $page.Title }}{{ $page.Title }}{{ end }}"
<i class="icofont-rss"></i>
</a>
{{ end }}