fix site.author and site.email

This commit is contained in:
Greg Gauthier 2022-01-07 22:15:55 +00:00
parent e5fd28dcb5
commit c2018bddd9
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,8 @@
{{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}
{{ with .Site.Author.email }}<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}
{{ with .Site.Author.email }}<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}
{{ with .Site.Author.email }}<Author>{{.}}{{with $.Site.Author.name }} ({{.}}){{end}}</Author>{{end}}
<author>{{ .Site.Author.name }}</author>
<email>{{ .Site.Author.email }}</email>
{{ with .Site.Copyright }}<copyright>{{.}}</copyright>{{end}}
{{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}