1 {{- printf
"<?xml version=\"1.0\
" encoding=\"utf-
8\
"?>" | safeHTML }}
2 <feed xmlns=
"http://www.w3.org/2005/Atom">
3 <title>{{ .Site.Title }}
</title>
4 <id>{{ .Permalink }}
</id>
6 {{ range (.Site.GetPage
"/posts").Pages }}
7 {{ if gt .Lastmod $lastmod }}
8 {{ $lastmod = .Lastmod }}
11 <updated>{{ $lastmod.Format
"2006-01-02T15:04:05Z" }}
</updated>
12 <link href=
"{{ .Permalink }}"/>
13 <link rel=
"self" href=
"{{ (.OutputFormats.Get "RSS
").Permalink }}"/>
15 <name>{{ $.Site.Author.name }}
</name>
16 <email>{{ $.Site.Author.email }}
</email>
17 <uri>{{ .Permalink }}
</uri>
19 <generator uri=
"https://gohugo.io/">Hugo
</generator>
21 {{ with $.Site.GetPage
"posts/" }}
22 {{ range first .Site.Config.Services.RSS.Limit .Pages }}
24 <id>{{ .Permalink }}
</id>
25 <link rel=
"alternate" href=
"{{ .RelPermalink }}"/>
26 <title>{{ .Title }}
</title>
27 <updated>{{ .Lastmod.Format
"2006-01-02T15:04:05Z" }}
</updated>
28 <published>{{ .PublishDate.Format
"2006-01-02T15:04:05Z" }}
</published>
29 <content type=
"html">{{ .Content | html }}
</content>
30 <summary type=
"html">{{ .Summary | html }}
</summary>