Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreuixiy <reuixiy@gmail.com>2022-05-06 20:01:08 +0300
committerreuixiy <reuixiy@gmail.com>2022-05-06 20:01:08 +0300
commit293d9a082903a16a686fd564c2310758e56cea95 (patch)
tree98fba2cf3a0f8f77d8a8b507657b7bf157de12ff
parent009b3c806686c2945ece33e287248ddb7438f785 (diff)
fix: insertHrBySelf not working anymore
-rw-r--r--layouts/partials/utils/content.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/utils/content.html b/layouts/partials/utils/content.html
index 1adcd85..6024a7c 100644
--- a/layouts/partials/utils/content.html
+++ b/layouts/partials/utils/content.html
@@ -83,7 +83,7 @@
<!-- Delete Footnote `<hr />` -->
{{- if .Site.Params.insertHrBySelf -}}
- {{- $regexPatternDeleteHr := `(<hr />|<hr>)\n(<section class="footnotes" role="doc-endnotes">)` -}}
+ {{- $regexPatternDeleteHr := `(<hr />|<hr>)\n(<(section|div) class="footnotes" role="doc-endnotes">)` -}}
{{- $regexReplacementDeleteHr := `$2` -}}
{{- $Content = $Content | replaceRE $regexPatternDeleteHr $regexReplacementDeleteHr -}}
{{- end -}}