|
|
@ -70,6 +70,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
{{ range $subpage := $subpages }}
|
|
|
|
{{ range $subpage := $subpages }}
|
|
|
|
<item>
|
|
|
|
<item>
|
|
|
|
|
|
|
|
{{ $author := "" }}
|
|
|
|
{{ $authors := partial "paige/authors.html" . }}
|
|
|
|
{{ $authors := partial "paige/authors.html" . }}
|
|
|
|
{{ $description := .Content }}
|
|
|
|
{{ $description := .Content }}
|
|
|
|
{{ $guid := "" }}
|
|
|
|
{{ $guid := "" }}
|
|
|
@ -80,17 +81,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
{{ $link := cond $paramlink .Params.link .Permalink }}
|
|
|
|
{{ $link := cond $paramlink .Params.link .Permalink }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $authors }}
|
|
|
|
{{ if $authors }}
|
|
|
|
{{ $primary := index . 0 }}
|
|
|
|
{{ $primary := index . 0 }}
|
|
|
|
{{ $author := "" }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if and $primary.name $primary.email }}
|
|
|
|
{{ if and $primary.name $primary.email }}
|
|
|
|
{{ $author = printf "%s (%s)" $primary.name $primary.email }}
|
|
|
|
{{ $author = printf "%s (%s)" $primary.name $primary.email }}
|
|
|
|
{{ else if $primary.email }}
|
|
|
|
{{ else if $primary.email }}
|
|
|
|
{{ $author = $primary.email }}
|
|
|
|
{{ $author = $primary.email }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
<author>{{ $author }}</author>
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if $description }}
|
|
|
|
{{ if $description }}
|
|
|
@ -105,8 +103,8 @@
|
|
|
|
{{ $description = .Description | markdownify}}
|
|
|
|
{{ $description = .Description | markdownify}}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $description }}
|
|
|
|
{{ if and (not $description) (not $title) }}
|
|
|
|
<description>{{ printf "<![CDATA[%s]]>" . | safeHTML }}</description>
|
|
|
|
{{ warnf "layouts/_default/rss.xml: Page %s does not have a title or description" .RelPermalink }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if .Params.id }}
|
|
|
|
{{ if .Params.id }}
|
|
|
@ -123,6 +121,15 @@
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $guids = merge (dict $guid .RelPermalink) $guids }}
|
|
|
|
{{ $guids = merge (dict $guid .RelPermalink) $guids }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $author }}
|
|
|
|
|
|
|
|
<author>{{ . }}</author>
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $description }}
|
|
|
|
|
|
|
|
<description>{{ printf "<![CDATA[%s]]>" . | safeHTML }}</description>
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
<guid {{ if not $permalink }} isPermaLink="false" {{ end }}>{{ $guid }}</guid>
|
|
|
|
<guid {{ if not $permalink }} isPermaLink="false" {{ end }}>{{ $guid }}</guid>
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $link }}
|
|
|
|
{{ with $link }}
|
|
|
@ -136,10 +143,6 @@
|
|
|
|
{{ with $title }}
|
|
|
|
{{ with $title }}
|
|
|
|
<title>{{ . }}</title>
|
|
|
|
<title>{{ . }}</title>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if and (not $description) (not $title) }}
|
|
|
|
|
|
|
|
{{ warnf "layouts/_default/rss.xml: Page %s does not have a title or description" .RelPermalink }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
</item>
|
|
|
|
</item>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</channel>
|
|
|
|
</channel>
|
|
|
|