diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index dc59dad4..b9d5e20d 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -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 }} diff --git a/layouts/_default/list.rss.xml b/layouts/_default/list.rss.xml index 885f77ea..68358d01 100644 --- a/layouts/_default/list.rss.xml +++ b/layouts/_default/list.rss.xml @@ -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 @@ {{ . }} {{ end }} - {{ range $subpage := $subpages }} + {{ range $subpages }} {{ $author := "" }} {{ $authors := partial "paige/func-authors.html" . }} @@ -123,8 +123,8 @@ {{ $description = .Description | markdownify }} {{ end }} - {{ $description = $description | replaceRE `` (printf `` .Permalink) }} - {{ $description = $description | replaceRE `` (printf `` .Permalink) }} + {{ $description = replaceRE `` (printf `` .Permalink) $description }} + {{ $description = replaceRE `` (printf `` .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 }}