aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2022-07-14 15:51:43 +0200
committerÓscar Nájera <hi@oscarnajera.com>2022-07-14 15:57:22 +0200
commiteaa5ddacfbedb9d17984be752479da38418edfcd (patch)
tree3c32b20863b51df2bb39f8262b5746e8f8289b14
parent17d65a66e8b860fb47684ae2d311f18ec1679ee2 (diff)
downloadhugo-minimalist-theme-eaa5ddacfbedb9d17984be752479da38418edfcd.tar.gz
hugo-minimalist-theme-eaa5ddacfbedb9d17984be752479da38418edfcd.tar.bz2
hugo-minimalist-theme-eaa5ddacfbedb9d17984be752479da38418edfcd.zip
Remove footnote links on summary
https://gitlab.com/kaushalmodi/hugo-theme-refined/-/blob/ed489e26adf3b533c8b113073ac541fe8b4e13b8/layouts/partials/summary_minus_toc.html#L26
-rw-r--r--layouts/partials/post.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/post.html b/layouts/partials/post.html
index 56ca457..99aa825 100644
--- a/layouts/partials/post.html
+++ b/layouts/partials/post.html
@@ -10,7 +10,8 @@
</div>
{{ end }}
<div class="f5 lh-copy near-black">
- {{ .Summary }}
+ <!-- {{ .Summary }} -->
+ {{ .Summary | replaceRE `<sup.*?><a href.*?#fn:.*?footnote-ref.*?/a></sup>` "" | safeHTML }}
</div>
</div>
</a>