]> git.dujemihanovic.xyz Git - dujemihanovic.xyz.git/blob - layouts/rss.xml
Revert "Switch key to binary instead of armor"
[dujemihanovic.xyz.git] / layouts / rss.xml
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">
3 <channel>
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 }}
15 {{- end -}}
16 {{ with .Site.GetPage "posts/" }}
17 {{ range .Pages | first .Site.Config.Services.RSS.Limit }}
18 <item>
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>
25 </item>
26 {{ end }}
27 {{ end }}
28 </channel>
29 </rss>