|
4 | 4 | <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> |
5 | 5 | <link>{{ .Permalink }}</link> |
6 | 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 }} |
| 7 | + <generator>Hugo</generator>{{ with .Site.LanguageCode }} |
| 8 | + <language>{{.}}</language>{{end}}{{ if not .Date.IsZero }} |
12 | 9 | <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} |
13 | 10 | {{ with .OutputFormats.Get "RSS" }} |
14 | 11 | {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} |
15 | 12 | {{ end }} |
16 | 13 | {{ range .Site.RegularPages }} |
17 | 14 | <item> |
18 | | - <title>{{ .Title }}</title> |
| 15 | + <title>{{ .Title | transform.XMLEscape | safeHTML }}</title> |
19 | 16 | <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}} |
| 17 | + <pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> |
22 | 18 | <guid>{{ .Permalink }}</guid> |
23 | | - <description>{{ .Summary | html }}</description> |
| 19 | + <description>{{ .Content | transform.XMLEscape | safeHTML }}</description> |
24 | 20 | </item> |
25 | 21 | {{ end }} |
26 | 22 | </channel> |
|
0 commit comments