diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-22 22:51:17 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-22 22:51:17 +0200 |
| commit | 82d9181cb40cba312ea824d91d1d358c3b657190 (patch) | |
| tree | ee699830dc2f65fb79d73b15a8525582103218e3 /layouts/_default/list.feed.xml | |
| parent | 2187073396f7a54f6cfa6835e992d962cc4f0fb1 (diff) | |
| download | gohugo-theme-ed-82d9181cb40cba312ea824d91d1d358c3b657190.tar.gz | |
Reformat feeds
Diffstat (limited to 'layouts/_default/list.feed.xml')
| -rw-r--r-- | layouts/_default/list.feed.xml | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/layouts/_default/list.feed.xml b/layouts/_default/list.feed.xml index c55b19b..8a80edf 100644 --- a/layouts/_default/list.feed.xml +++ b/layouts/_default/list.feed.xml @@ -13,7 +13,7 @@ {{- $limit := site.Params.feedSize | default 25 -}} {{- $pages = $pages | first $limit -}} -{{- safeHTML "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" }} +{{- safeHTML "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" }} <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" @@ -43,21 +43,17 @@ {{- end -}} {{- end }} {{ with site.Params.description }}{{ printf `<description type="html"><![CDATA[%s]]></description>` . | safeHTML }}{{ end }} - <generator>Hugo {{ hugo.Version }}</generator> - {{ with site.Author.name }}{{ printf `<dc:creator type="html"><![CDATA[%s]]></dc:creator>` . | safeHTML }}{{ end }} - {{ with site.LanguageCode }}<language>{{ . }}</language>{{ end }} - {{ with site.Params.Copyright }} - {{- $copyright := replace . "{year}" now.Year -}} - {{- $copyright = replace $copyright "©" "©" }}<copyright>{{ $copyright | plainify }}</copyright>{{ end }} - {{ if not site.LastChange.IsZero }}<lastBuildDate>{{ site.LastChange.UTC.Format site.Params.dateFormatRFC822Z | html }}</lastBuildDate>{{ end }} - {{ $feedsize := site.Params.feedSize | default 25 }} - {{- range $pages }} + <generator>Hugo {{ hugo.Version }}</generator>{{ with site.Author.name }} + {{ printf `<dc:creator type="html"><![CDATA[%s]]></dc:creator>` . | safeHTML }}{{ end }}{{ with site.LanguageCode }} + <language>{{ . }}</language>{{ end }}{{ with site.Params.Copyright }}{{ $copyright := replace . "{year}" now.Year }}{{ $copyright = replace $copyright "©" "©" }} + <copyright>{{ $copyright | plainify }}</copyright>{{ end }}{{ if not site.LastChange.IsZero }} + <lastBuildDate>{{ site.LastChange.UTC.Format site.Params.dateFormatRFC822Z | html }}</lastBuildDate>{{ end }}{{- range $pages }} <item> {{ printf `<title type="html"><![CDATA[%s]]></title>` .Title | safeHTML }} <link>{{ .Permalink | absURL }}?utm_source=rss_feed</link> <pubDate>{{ .PublishDate.UTC.Format site.Params.dateFormatRFC822Z | html }}</pubDate> - <category>{{ .Section }}</category> - {{ range (.GetTerms "tags") }}<category>{{ .LinkTitle }}</category>{{end}} + <category>{{ .Section }}</category>{{ range (.GetTerms "tags") }} + <category>{{ .LinkTitle }}</category>{{end}} <guid isPermaLink="false">{{ md5 .Permalink }}</guid> {{ printf `<description type="html"><![CDATA[%s]]></description>` .Summary | safeHTML }} </item> |
