-
{{ $term | humanize}}
+
{{ $term | humanize}}
{{ range first 5 $pages }}
- {{ .Title }}
+ {{ .Title }}
{{ end }}
{{ if gt (len $pages) 5 }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 2e08a5f..9ce2758 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -29,9 +29,9 @@
{{ partial "css" . }}
- {{ if .RSSLink }}
-
-
+ {{ with .OutputFormats.Get "RSS" }}
+
+
{{ end }}
{{ partial "seo_schema" . }}
diff --git a/layouts/rss.xml b/layouts/rss.xml
index 935d316..276acc3 100644
--- a/layouts/rss.xml
+++ b/layouts/rss.xml
@@ -5,17 +5,17 @@
Recent content {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }}
Hugo -- gohugo.io{{ with .Site.LanguageCode }}
{{.}}{{end}}{{ with .Site.Author.email }}
-
{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }}
-
{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }}
+
{{.}}{{ with site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }}
+
{{.}}{{ with site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }}
{{.}}{{end}}{{ if not .Date.IsZero }}
{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }}
-
+
{{ range first 15 (where .Data.Pages "Type" "!=" "home") }}
-
{{ .Title }}
{{ .Permalink }}
{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
- {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}
+ {{ with .Site.Author.email }}{{.}}{{ with site.Author.name }} ({{.}}){{end}}{{end}}
{{ .Permalink }}
{{ .Content | html }}