From e42365eecfd13eb7866067f3f69d21b37c81436b Mon Sep 17 00:00:00 2001 From: Mogeko Date: Thu, 6 Jun 2019 18:04:59 +0800 Subject: [PATCH] Added support for Hugo 0.55 --- layouts/_default/terms.html | 4 ++-- layouts/partials/head.html | 6 +++--- layouts/rss.xml | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 6eba1e3..cff762f 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -16,10 +16,10 @@

- {{ .Da {{ with $.Site.GetPage "taxonomy" (printf "%s/%s" $type $term) }}
-

{{ $term | humanize}}

+

{{ $term | humanize}}

{{ range first 5 $pages }} {{ 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 }}