Fixed <author> tag to display correct format

This commit is contained in:
Stephan Hadan 2025-01-29 13:18:57 +01:00
parent 4244d3e795
commit 7e9ec19598

View file

@ -14,7 +14,7 @@
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<author>{{ with .Site.Params.Author.email }}{{.}} - {{end}}{{ with .Site.Params.Author.firstname }}{{.}}{{ end }} {{ with .Site.Params.Author.lastname }}{{.}}{{end}}</author>
<author>{{ with .Site.Params.Author.email }}{{.}}({{end}}{{ with .Site.Params.Author.firstname }}{{.}}{{ end }} {{ with .Site.Params.Author.lastname }}{{.}}){{end}}</author>
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>