diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index d0ab5eeb..12c0633c 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -108,11 +108,11 @@ {{ if not (.Param "paige.exclude_feeds") }} {{ $content := partial "paige/func-content.html" $subpage }} + {{ $description := markdownify .Description }} {{ $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 }} {{ $lastmod := .Lastmod.Format $date }} {{ $published := cond (not .PublishDate.IsZero) (.PublishDate.Format $date) "" }} - {{ $summary := markdownify .Description }} {{ $title := markdownify .Title }} {{ $link := cond $external .Params.link .Permalink }} @@ -188,7 +188,7 @@ {{ end }} - {{ with $summary }} + {{ with $description }} {{ end }} diff --git a/layouts/_default/list.rss.xml b/layouts/_default/list.rss.xml index ee81a6d6..84e46afd 100644 --- a/layouts/_default/list.rss.xml +++ b/layouts/_default/list.rss.xml @@ -97,7 +97,7 @@ {{ $author := "" }} {{ $authors := partial "paige/func-authors.html" . }} - {{ $description := partial "paige/func-content.html" $subpage }} + {{ $content := partial "paige/func-content.html" $subpage }} {{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }} {{ $guid := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") (cond (.Params.id | not) .RelPermalink .Params.id) }} {{ $published := .PublishDate.Format $date }} @@ -105,7 +105,7 @@ {{ $link := cond $external .Params.link .Permalink }} - {{ $description = partial "paige/func-minify.html" (dict "content" $description) }} + {{ $content = partial "paige/func-minify.html" (dict "content" $content) }} {{ with $authors }} {{ $primary := index . 0 }} @@ -117,26 +117,26 @@ {{ end }} {{ end }} - {{ if and $description $external }} + {{ if and $content $external }} {{ $text := or (.Param "paige.feeds.page_link" | markdownify) "⏎" }} {{ $footer := printf `

%s

` .Permalink $text | safeHTML }} - {{ $description = print $description $footer }} + {{ $content = print $content $footer }} {{ end }} - {{ if not $description }} - {{ $description = .Description | markdownify }} + {{ if not $content }} + {{ $content = .Description | markdownify }} {{ end }} - {{ $description = replaceRE `` (printf `` .Permalink) $description }} - {{ $description = replaceRE `` (printf `` .Permalink) $description }} + {{ $content = replaceRE `` (printf `` .Permalink) $content }} + {{ $content = replaceRE `` (printf `` .Permalink) $content }} {{ with $author }} {{ . }} {{ end }} - {{ with $description }} + {{ with $content }} {{ end }}