From 4c7fe1a56be94a28001a5f22cdfbed9d8b975f1a Mon Sep 17 00:00:00 2001 From: leafee98 Date: Wed, 18 May 2022 11:13:01 +0800 Subject: [PATCH] use .Section other than .Title to get section name --- layouts/partials/footer.html | 8 ++++---- 1 file 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" }} - Feed of {{ with $page.Title }}{{ $page.Title }}{{ end }} + Feed of {{ $section.Section | humanize }} {{ end }} @@ -18,10 +18,10 @@ {{ end }} {{ if not (or .IsHome .IsSection) }} - {{ $page := . }} + {{ $section := . }} {{ with .OutputFormats.Get "rss" }} - Feed of "{{ with $page.Title }}{{ $page.Title }}{{ end }}" + Feed of {{ $section.Section | humanize }} {{ end }}