Move content filtering after mutation
This commit is contained in:
		| @@ -117,10 +117,6 @@ | ||||
|  | ||||
|                 {{ $link := cond $external .Params.link .Permalink }} | ||||
|  | ||||
|                 {{ $content = partial "paige/func-minify.html" (dict "content" $content) }} | ||||
|                 {{ $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 }} | ||||
|  | ||||
|                 {{ if and $content $external }} | ||||
|                     {{ $text := or (.Param "paige.feeds.page_link" | markdownify) "⏎" }} | ||||
|  | ||||
| @@ -133,6 +129,10 @@ | ||||
|                     {{ $content = markdownify .Description }} | ||||
|                 {{ end }} | ||||
|  | ||||
|                 {{ $content = partial "paige/func-minify.html" (dict "content" $content) }} | ||||
|                 {{ $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 partial "paige/func-authors.html" . }} | ||||
|                     {{ range . }} | ||||
|                         <author> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user