aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--themes/default/layouts/partials/function-content.html13
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>(&ndash;|&mdash;).*</p>` .Content -}}
-
+{{- $blockquoteFooters := findRE `</blockquote>\n<p>(&ndash;|&mdash;).*</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>(&ndash;|&mdash;).*</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 -}}