range and use index hack for commas
This commit is contained in:
parent
15b8371905
commit
64282d8fa5
1 changed files with 6 additions and 1 deletions
|
@ -61,7 +61,12 @@
|
|||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<author>{{ with .GetTerms "authors" }} {{ delimit .Title ", " }} {{- end }}</author>
|
||||
<author>{{ with .GetTerms "authors" -}}
|
||||
{{- range $i, $pageAuthor := . -}}
|
||||
{{- if $i -}}, {{ end }}
|
||||
{{ .Title }}
|
||||
{{- end -}}
|
||||
{{- 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>
|
||||
|
|
Loading…
Reference in a new issue