use .Section other than .Title to get section name
This commit is contained in:
parent
715a82f5ac
commit
4c7fe1a56b
|
@ -7,10 +7,10 @@
|
||||||
|
|
||||||
{{ if gt (len .Site.Sections) 1 }}
|
{{ if gt (len .Site.Sections) 1 }}
|
||||||
{{ range .Site.Sections }}
|
{{ range .Site.Sections }}
|
||||||
{{ $page := . }}
|
{{ $section := . }}
|
||||||
{{ with .OutputFormats.Get "rss" }}
|
{{ with .OutputFormats.Get "rss" }}
|
||||||
<a class="footer-item" href="{{ .Permalink }}">
|
<a class="footer-item" href="{{ .Permalink }}">
|
||||||
Feed of {{ with $page.Title }}{{ $page.Title }}{{ end }}
|
Feed of {{ $section.Section | humanize }}
|
||||||
<i class="icofont-rss"></i>
|
<i class="icofont-rss"></i>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -18,10 +18,10 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if not (or .IsHome .IsSection) }}
|
{{ if not (or .IsHome .IsSection) }}
|
||||||
{{ $page := . }}
|
{{ $section := . }}
|
||||||
{{ with .OutputFormats.Get "rss" }}
|
{{ with .OutputFormats.Get "rss" }}
|
||||||
<a class="footer-item" href="{{ .Permalink }}">
|
<a class="footer-item" href="{{ .Permalink }}">
|
||||||
Feed of "{{ with $page.Title }}{{ $page.Title }}{{ end }}"
|
Feed of {{ $section.Section | humanize }}
|
||||||
<i class="icofont-rss"></i>
|
<i class="icofont-rss"></i>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue