1 {{- printf
"<?xml version=\"1.0\
" encoding=\"utf-
8\
" standalone=\"yes\
"?>" | safeHTML }}
2 <rss version=
"2.0" xmlns:
atom=
"http://www.w3.org/2005/Atom">
4 <title>{{ .Site.Title }}
</title>
5 <link>{{ .Permalink }}
</link>
6 <description>Recent content on {{ .Site.Title }}
</description>
7 <generator>Hugo -- gohugo.io
</generator>
8 <language>{{ site.Language.LanguageCode }}
</language>{{ with .Site.Author.email }}
9 <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}
</managingEditor>{{end}}{{ with .Site.Author.email }}
10 <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}
</webMaster>{{end}}{{ with .Site.Copyright }}
11 <copyright>{{.}}
</copyright>{{end}}{{ if not .Date.IsZero }}
12 <lastBuildDate>{{ .Date.Format
"Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
</lastBuildDate>{{ end }}
13 {{- with .OutputFormats.Get
"RSS" -}}
14 {{ printf
"<atom:link href=%q rel=\"self\
" type=%q />" .Permalink .MediaType | safeHTML }}
16 {{ with .Site.GetPage
"posts/" }}
17 {{ range .Pages | first .Site.Config.Services.RSS.Limit }}
19 <title>{{ .Title }}
</title>
20 <link>{{ .Permalink }}
</link>
21 <pubDate>{{ .Date.Format
"Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
</pubDate>
22 {{ with .Site.Author.email }}
<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}
</author>{{end}}
23 <guid>{{ .Permalink }}
</guid>
24 <description>{{ .Content | html }}
</description>