thanks Ru, "fixes" to dc:creator vs author vs managingEditor; some should contain en e-mail address
This commit is contained in:
parent
002b4d9672
commit
8d2c7d693c
|
@ -14,20 +14,24 @@
|
|||
{{- end -}}
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
{{- printf "<?xml-stylesheet href=\"/pretty-feed-v3.xsl\" type=\"text/xsl\"?>" | safeHTML }}
|
||||
<rss version='2.0' xmlns:content='http://purl.org/rss/1.0/modules/content/' xmlns:atom='http://www.w3.org/2005/Atom'>
|
||||
<rss version='2.0' xmlns:content='http://purl.org/rss/1.0/modules/content/' xmlns:atom='http://www.w3.org/2005/Atom' xmlns:dc='http://purl.org/dc/elements/1.1/'>
|
||||
<channel>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>{{ .Site.Params.description }} by {{ .Site.Author.name }} </description>
|
||||
<description>{{ .Site.Params.description }} by {{ .Site.Author.name }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}
|
||||
<managingEditor>{{ with $.Site.Author.name }}{{.}}{{end}}</managingEditor>
|
||||
<webMaster>{{ with $.Site.Author.name }}{{.}}{{end}}</webMaster>{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{ end }}
|
||||
<managingEditor>{{ .Site.Author.rssmail }} ({{ with $.Site.Author.name }}{{.}}{{end}})</managingEditor>
|
||||
{{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{ with .OutputFormats.Get "RSS" }}{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}{{ end }}
|
||||
<image>
|
||||
<url>{{ $baseurl }}img/logo.jpg</url>
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<width>150</width>
|
||||
<height>150</height>
|
||||
<description>{{ .Site.Params.description }} by {{ .Site.Author.name }}</description>
|
||||
</image>
|
||||
{{ range $pages }}
|
||||
{{ if and (in $allowedRssSections .Section) (not (isset .Params "type")) (or (not (isset .Params "context")) (eq .Params.context "")) }}
|
||||
<item>
|
||||
|
@ -35,7 +39,7 @@
|
|||
<link>{{ .Permalink }}</link>
|
||||
<comments>{{ .Site.Author.mastodonlink }}</comments>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
<author>{{ with $.Site.Author.name }}{{.}}{{end}}</author>
|
||||
<dc:creator>{{ with $.Site.Author.name }}{{.}}{{end}}</dc:creator>
|
||||
<guid isPermaLink="true">{{ .Permalink }}</guid>
|
||||
{{ if .Keywords }}
|
||||
{{ range .Keywords }}
|
||||
|
|
Loading…
Reference in New Issue