32 lines
1.2 KiB
XML

{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ .Site.Title }}</title>
<link href="{{ .Permalink }}"/>
{{ with .OutputFormats.Get "Atom" }}
{{ printf "<link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</updated>
<author>
{{ with $.Site.Author.name }}<name>{{.}}</name>{{end}}
{{ with $.Site.Author.email }}<email>{{.}}</email>{{end}}
</author>
<generator>Hugo</generator>
<id>{{ .Permalink }}</id>
{{ range first 15 .Pages }}
<entry>
<title>{{ .Title }}</title>
<link rel="alternate" href="{{ .Permalink }}"/>
<id>{{ .Permalink }}</id>
<published>{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</published>
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</updated>
<summary type="html">{{ .Content | html }}</summary>
{{ range .Params.tags }}
<category term="{{ . }}"/>
{{ end }}
{{ range .Params.categories }}
<category term="{{ . }}"/>
{{ end }}
</entry>
{{ end }}
</feed>