28 lines
1.2 KiB
XML
28 lines
1.2 KiB
XML
{{- $context := .context -}}
|
|
{{- $pages := .pages -}}
|
|
{{- 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>{{ $context.Site.Title }}</title>
|
|
<link>{{ $context.Permalink }}</link>
|
|
<description>Recent content on {{ $context.Site.Title }}</description>
|
|
<generator>Hugo {{ hugo.Version }}</generator>
|
|
{{ with $context.Site.LanguageCode }}<language>{{ . }}</language>{{ end }}
|
|
{{ with $context.Site.Author }}
|
|
<managingEditor>{{ .name }} <{{ .email }}></managingEditor>
|
|
<webMaster>{{ .name }} <{{ .email }}></webMaster>
|
|
{{ end }}
|
|
{{ with $context.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 }}
|
|
{{ range $pages }}
|
|
{{ if not .Date.IsZero }}
|
|
{{ .Render "rss_item" }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</channel>
|
|
</rss>
|