diff options
author | reuixiy <reuixiy@gmail.com> | 2022-05-06 20:01:08 +0300 |
---|---|---|
committer | reuixiy <reuixiy@gmail.com> | 2022-05-06 20:01:08 +0300 |
commit | 293d9a082903a16a686fd564c2310758e56cea95 (patch) | |
tree | 98fba2cf3a0f8f77d8a8b507657b7bf157de12ff | |
parent | 009b3c806686c2945ece33e287248ddb7438f785 (diff) |
fix: insertHrBySelf not working anymore
-rw-r--r-- | layouts/partials/utils/content.html | 2 |
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 -}} |