Fix RSS item author to be email
This commit is contained in:
@@ -41,13 +41,14 @@
|
|||||||
{{ range $pages }}
|
{{ range $pages }}
|
||||||
<item>
|
<item>
|
||||||
{{ with partial "paige/authors.html" . }}
|
{{ with partial "paige/authors.html" . }}
|
||||||
{{ $authors := slice }}
|
{{ $primary := index . 0 }}
|
||||||
|
{{ $author := "" }}
|
||||||
{{ range . }}
|
{{ if and $primary.name $primary.email }}
|
||||||
{{ $authors = $authors | append .name }}
|
{{ $author = printf `%s <%s>` $primary.name $primary.email }}
|
||||||
|
{{ else if $primary.email }}
|
||||||
|
{{ $author = $primary.email }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<author>{{ $author }}</author>
|
||||||
<author>{{ delimit $authors ", " }}</author>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Content }}
|
{{ if .Content }}
|
||||||
<description>{{ printf "<![CDATA[%s]]>" .Content | safeHTML }}</description>
|
<description>{{ printf "<![CDATA[%s]]>" .Content | safeHTML }}</description>
|
||||||
|
Reference in New Issue
Block a user