use with-end syntax

This commit is contained in:
echtnurich 2023-12-13 18:30:00 +00:00
parent 4a868f8e2d
commit 593b019dc2

View file

@ -61,7 +61,7 @@
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<author>{{ .GetTerms "authors" | delimit ", " }}</author>
<author>{{ with .GetTerms "authors" }} {{ delimit . ", " }} {{- end }}</author>
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
<guid>{{ .Permalink }}</guid>