diff options
author | Giuseppe Pignataro <rogepix@gmail.com> | 2019-05-05 11:25:43 +0300 |
---|---|---|
committer | Giuseppe Pignataro <rogepix@gmail.com> | 2019-05-05 11:25:43 +0300 |
commit | fc248e808b1de1d4a5fc3219bfee4ef303721f6f (patch) | |
tree | 0bf78c6815508ed2d7cc8c7eaddefa8c9d54e759 /layouts/rss.xml | |
parent | 8b49c5eaa2d68eeaf0549df00020c1191d1c37b1 (diff) |
Various Fix and added support for Hugo 0.55
Diffstat (limited to 'layouts/rss.xml')
-rw-r--r-- | layouts/rss.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/rss.xml b/layouts/rss.xml index 935d316..ebfb43b 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -5,20 +5,20 @@ <description>Recent content {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }}</description> <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }} <language>{{.}}</language>{{end}}{{ with .Site.Author.email }} - <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }} - <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }} + <managingEditor>{{.}}{{ with site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }} + <webMaster>{{.}}{{ with site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }} <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }} <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} - <atom:link href="{{.URL}}" rel="self" type="application/rss+xml" /> + <atom:link href="{{.Permalink}}" rel="self" type="application/rss+xml" /> {{ range first 15 (where .Data.Pages "Type" "!=" "home") }} <item> <title>{{ .Title }}</title> <link>{{ .Permalink }}</link> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> - {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} + {{ with .Site.Author.email }}<author>{{.}}{{ with site.Author.name }} ({{.}}){{end}}</author>{{end}} <guid>{{ .Permalink }}</guid> <description>{{ .Content | html }}</description> </item> {{ end }} </channel> -</rss>
\ No newline at end of file +</rss> |