master
Will Faught 5 months ago
parent 5f244b4e2c
commit dca185a15c

@ -20,13 +20,13 @@
{{ end }}
{{ if gt $limit 0 }}
{{ $subpages = $subpages | first $limit }}
{{ $subpages = first $limit $subpages }}
{{ end }}
{{ $titles := slice ($page.Title | markdownify) }}
{{ $titles := slice (markdownify $page.Title) }}
{{ range .Ancestors }}
{{ $titles = $titles | append (.Title | markdownify) }}
{{ $titles = $titles | append (markdownify .Title) }}
{{ end }}
{{ $title := delimit $titles " · " }}
@ -104,8 +104,8 @@
{{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }}
{{ $id := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") .RelPermalink }}
{{ $published := cond (not .PublishDate.IsZero) (.PublishDate.Format $format) "" }}
{{ $summary := .Description | markdownify }}
{{ $title := .Title | markdownify }}
{{ $summary := markdownify .Description }}
{{ $title := markdownify .Title }}
{{ $updated := .Lastmod.Format $format }}
{{ $link := cond $external .Params.link .Permalink }}
@ -119,7 +119,7 @@
{{ end }}
{{ if not $content }}
{{ $content = .Description | markdownify }}
{{ $content = markdownify .Description }}
{{ end }}
{{ if not $title }}

@ -25,10 +25,10 @@
{{ $subpages = $subpages | first $limit }}
{{ end }}
{{ $titles := slice ($page.Title | markdownify) }}
{{ $titles := slice (markdownify $page.Title) }}
{{ range .Ancestors }}
{{ $titles = $titles | append (.Title | markdownify) }}
{{ $titles = $titles | append (markdownify .Title) }}
{{ end }}
{{ $title := delimit $titles " · " }}
@ -89,7 +89,7 @@
<webMaster>{{ . }}</webMaster>
{{ end }}
{{ range $subpage := $subpages }}
{{ range $subpages }}
<item>
{{ $author := "" }}
{{ $authors := partial "paige/func-authors.html" . }}
@ -123,8 +123,8 @@
{{ $description = .Description | markdownify }}
{{ end }}
{{ $description = $description | replaceRE `<a href="#fn:(\d+)" class="footnote-ref" role="doc-noteref">` (printf `<a href="%s#fn:$1" class="footnote-ref" role="doc-noteref">` .Permalink) }}
{{ $description = $description | replaceRE `<a href="#fnref:(\d+)" class="footnote-backref" role="doc-backlink">` (printf `<a href="%s#fnref:$1" class="footnote-backref" role="doc-backlink">` .Permalink) }}
{{ $description = replaceRE `<a href="#fn:(\d+)" class="footnote-ref" role="doc-noteref">` (printf `<a href="%s#fn:$1" class="footnote-ref" role="doc-noteref">` .Permalink) $description }}
{{ $description = replaceRE `<a href="#fnref:(\d+)" class="footnote-backref" role="doc-backlink">` (printf `<a href="%s#fnref:$1" class="footnote-backref" role="doc-backlink">` .Permalink) $description }}
{{ if and (not $description) (not $title) }}
{{ warnf "layouts/_default/rss.xml: Page %s does not have a title or description. The rss output requires a title or description. Either set the page's title or description parameters, or disable the rss output." .RelPermalink }}

Loading…
Cancel
Save