]> njoseph.me Git - hyde.git/blame - layouts/rss.xml
Fix RSS feeds
[hyde.git] / layouts / rss.xml
CommitLineData
9806fde3
JN
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>Joseph Nuthalapati</title>
5 <link>{{ .Permalink }}</link>
6 <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
7 <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
8 <language>{{.}}</language>{{end}}{{ 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 }}
0332598d 16 {{ range where .Site.RegularPages "Section" "posts" }}
9806fde3
JN
17 <item>
18 <title>{{ .Title }}</title>
19 <link>{{ .Permalink }}</link>
20 <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
21 {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
22 <guid>{{ .Permalink }}</guid>
23 <description>{{ .Content | html }}</description>
24 </item>
25 {{ end }}
26 </channel>
27</rss>