1<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">2 <channel>3 <title>{{.Title}} on {{ .Site.Title }}</title>4 <link>{{ .Permalink }}</link>5 <description>Recent content of {{.Title}} on {{ .Site.Title }}</description>6 <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}7 <language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}8 <managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}9 <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}10 <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}11 <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}12 <atom:link href="{{.Permalink}}" rel="self" type="application/rss+xml" />13 {{ $pages := (where .RegularPages "Params.NoRSS" "!=" true)}}14 {{ if eq .Page.RelPermalink "/" }}15 {{ $pages = (where $.Site.RegularPages "Params.NoRSS" "!=" true) }}16 {{end}}1718 {{ range first 10 $pages}}19 <item>20 <title>{{ .Title }}</title>21 <link>{{ .Permalink }}</link>22 <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>23 {{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}24 <guid>{{ .Permalink }}</guid>25 <description>{{ .Content | html }}</description>26 </item>27 {{ end }}28 </channel>29</rss>