portails/layouts/rss.xml

28 lines
1.6 KiB
XML
Raw Normal View History

2020-04-15 15:48:16 +02:00
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
2021-06-25 16:04:42 +02:00
<link>{{ .Permalink }}</link>
2020-04-15 15:48:16 +02:00
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ 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 }}
2021-09-06 10:19:46 +02:00
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Params.copyRight }}
<copyright>{{ . | safeHTML }}</copyright>{{end}}{{ if not .Date.IsZero }}
2020-04-15 15:48:16 +02:00
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
2021-06-25 16:04:42 +02:00
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
2020-04-15 15:48:16 +02:00
{{ end }}
{{ range .Pages }}{{ if ne .Params.feed_exclude true }}
<item>
<title>{{ .Title }}</title>
2021-06-25 16:04:42 +02:00
<link>{{ .Permalink }}</link>
2020-04-15 15:48:16 +02:00
<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}}
2021-06-25 16:04:42 +02:00
<guid>{{ .Permalink }}</guid>
2020-04-15 15:48:16 +02:00
<description>{{ .Summary | html }}</description>
</item>
{{ end }}{{ end }}
</channel>
</rss>