Fix author name in rss feed

This commit is contained in:
Joshua Goins 2022-12-20 18:03:07 -05:00
parent fb9d23906c
commit 414ff302b1

View file

@ -28,9 +28,11 @@
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}}
{{ range $pages }}
{{ if not (.Param "excludefeed") }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
{{ with $.Site.Author.name }}<author>{{ . }}</author>{{ end }}
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
@ -38,5 +40,6 @@
<content:encoded>{{ "<![CDATA[" | safeHTML }} {{ partial "rss.html" . | safeHTML }}]]></content:encoded>
</item>
{{ end }}
{{ end }}
</channel>
</rss>