Rename vars to match values
This commit is contained in:
		| @@ -97,7 +97,7 @@ | ||||
|                 <item> | ||||
|                     {{ $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 `<p><a href="%s">%s</a></p>` .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 `<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 }} | ||||
|                     {{ $content = replaceRE `<a href="#fn:(\d+)" class="footnote-ref" role="doc-noteref">` (printf `<a href="%s#fn:$1" class="footnote-ref" role="doc-noteref">` .Permalink) $content }} | ||||
|                     {{ $content = replaceRE `<a href="#fnref:(\d+)" class="footnote-backref" role="doc-backlink">` (printf `<a href="%s#fnref:$1" class="footnote-backref" role="doc-backlink">` .Permalink) $content }} | ||||
|  | ||||
|                     {{ with $author }} | ||||
|                         <author>{{ . }}</author> | ||||
|                     {{ end }} | ||||
|  | ||||
|                     {{ with $description }} | ||||
|                     {{ with $content }} | ||||
|                         <description><![CDATA[{{ . }}]]></description> | ||||
|                     {{ end }} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user