diff options
author | leafee98 <leafee98@hotmail.com> | 2022-05-18 11:13:01 +0800 |
---|---|---|
committer | leafee98 <leafee98@hotmail.com> | 2022-05-18 11:13:01 +0800 |
commit | 4c7fe1a56be94a28001a5f22cdfbed9d8b975f1a (patch) | |
tree | 31bec02e28cf81ec642a4cda9a9d67abe785ffb7 | |
parent | 715a82f5acf80b125c5e5ead2ff5765c075efa6b (diff) |
use .Section other than .Title to get section name
-rw-r--r-- | layouts/partials/footer.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 77499e3..91bd035 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -7,10 +7,10 @@ {{ if gt (len .Site.Sections) 1 }} {{ range .Site.Sections }} - {{ $page := . }} + {{ $section := . }} {{ with .OutputFormats.Get "rss" }} <a class="footer-item" href="{{ .Permalink }}"> - Feed of {{ with $page.Title }}{{ $page.Title }}{{ end }} + Feed of {{ $section.Section | humanize }} <i class="icofont-rss"></i> </a> {{ end }} @@ -18,10 +18,10 @@ {{ end }} {{ if not (or .IsHome .IsSection) }} - {{ $page := . }} + {{ $section := . }} {{ with .OutputFormats.Get "rss" }} <a class="footer-item" href="{{ .Permalink }}"> - Feed of "{{ with $page.Title }}{{ $page.Title }}{{ end }}" + Feed of {{ $section.Section | humanize }} <i class="icofont-rss"></i> </a> {{ end }} |