|
|
@ -38,7 +38,8 @@
|
|
|
|
{{ with $page.Param "paige.feed.rss.web_master" }}
|
|
|
|
{{ with $page.Param "paige.feed.rss.web_master" }}
|
|
|
|
<webMaster>{{ . }}</webMaster>
|
|
|
|
<webMaster>{{ . }}</webMaster>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ range $pages }}
|
|
|
|
{{ $guids := dict }}
|
|
|
|
|
|
|
|
{{ range $subpage := $pages }}
|
|
|
|
<item>
|
|
|
|
<item>
|
|
|
|
{{ $title := .Title | markdownify | plainify }}
|
|
|
|
{{ $title := .Title | markdownify | plainify }}
|
|
|
|
{{ with partial "paige/authors.html" . }}
|
|
|
|
{{ with partial "paige/authors.html" . }}
|
|
|
@ -73,6 +74,10 @@
|
|
|
|
{{ $guid = .RelPermalink }}
|
|
|
|
{{ $guid = .RelPermalink }}
|
|
|
|
{{ $permalink = false }}
|
|
|
|
{{ $permalink = false }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ with index $guids $guid }}
|
|
|
|
|
|
|
|
{{ warnf "layouts/_default/rss.xml: Pages %s and %s have the same GUID" . $subpage.RelPermalink }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ $guids = merge (dict $guid .RelPermalink) $guids }}
|
|
|
|
<guid {{ if not $permalink }} isPermaLink="false" {{ end }}>{{ $guid }}</guid>
|
|
|
|
<guid {{ if not $permalink }} isPermaLink="false" {{ end }}>{{ $guid }}</guid>
|
|
|
|
{{ if and .Params.link (not (.Param "paige.feed.link_to_page")) }}
|
|
|
|
{{ if and .Params.link (not (.Param "paige.feed.link_to_page")) }}
|
|
|
|
<link>{{ .Params.link | safeURL }}</link>
|
|
|
|
<link>{{ .Params.link | safeURL }}</link>
|
|
|
|