diff options
Diffstat (limited to 'themes/default/layouts/partials/function-content.html')
-rw-r--r-- | themes/default/layouts/partials/function-content.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/themes/default/layouts/partials/function-content.html b/themes/default/layouts/partials/function-content.html index 256d7e0..239badc 100644 --- a/themes/default/layouts/partials/function-content.html +++ b/themes/default/layouts/partials/function-content.html @@ -10,17 +10,22 @@ replaceRE "</figure></p>" "</figure>" | -}} -{{- $blockquoteFooters := findRE `(?s)</blockquote>\n<p>(–|—).*</p>` .Content -}} - +{{- $blockquoteFooters := findRE `</blockquote>\n<p>(–|—).*</p>` .Content -}} {{- range $blockquoteFooter := $blockquoteFooters -}} - {{- $blockquoteFooterFixed := $blockquoteFooter | replaceRE "</blockquote>\n<p>" "<footer><cite>" | replaceRE "</p>" "</cite></footer></blockquote>" | -}} - {{- $content = $content | replaceRE $blockquoteFooter $blockquoteFooterFixed -}} +{{- end -}} +{{- $blockquoteFooters = findRE `(?s)</blockquote>\n<p>(–|—).*</p>` .Content -}} +{{- range $blockquoteFooter := $blockquoteFooters -}} + {{- $blockquoteFooterFixed := $blockquoteFooter | + replaceRE "</blockquote>\n<p>" "<footer><cite>" | + replaceRE "</p>" "</cite></footer></blockquote>" | + -}} + {{- $content = $content | replaceRE $blockquoteFooter $blockquoteFooterFixed -}} {{- end -}} {{- if $empty -}} |