summaryrefslogtreecommitdiff
path: root/layouts/rss.xml
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/rss.xml')
-rw-r--r--layouts/rss.xml14
1 files changed, 7 insertions, 7 deletions
diff --git a/layouts/rss.xml b/layouts/rss.xml
index 4baaa59..9f70eb5 100644
--- a/layouts/rss.xml
+++ b/layouts/rss.xml
@@ -37,11 +37,11 @@
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo</generator>
- <language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
- <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
- <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
- <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
- <lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
+ <language>{{ site.Language.LanguageCode }}</language>
+ {{- with $authorName }}<managingEditor>{{ . }}</managingEditor>{{ end }}
+ {{- with $authorName }}<webMaster>{{ . }}</webMaster>{{ end }}
+ {{- with .Site.Copyright }}<copyright>{{ . }}</copyright>{{ end }}
+ {{- if not .Date.IsZero }}<lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end }}
@@ -50,9 +50,9 @@
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
- {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
+ {{- with $authorName }}<author>{{ . }}</author>{{ end }}
<guid>{{ .Permalink }}</guid>
- <description>{{ .Summary | transform.XMLEscape | safeHTML }}</description>
+ <description>{{ .Content | transform.XMLEscape | safeHTML }}</description>
</item>
{{- end }}
</channel>