diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 01:35:53 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 01:35:53 +0100 |
commit | 9dcafb5af5332ba0a5753abf441183417880a739 (patch) | |
tree | 26b4003421b611dfdc80cc061729a299f23960fe | |
parent | dee863b5e0812f95db4caf367983864a74b63ccc (diff) | |
download | hugo-minimalist-theme-9dcafb5af5332ba0a5753abf441183417880a739.tar.gz hugo-minimalist-theme-9dcafb5af5332ba0a5753abf441183417880a739.tar.bz2 hugo-minimalist-theme-9dcafb5af5332ba0a5753abf441183417880a739.zip |
fix generation of links in summary view for post
-rw-r--r-- | layouts/partials/post.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/partials/post.html b/layouts/partials/post.html index a7e62ef..28c7dec 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -26,8 +26,7 @@ <div class="px-4"> <h3 class="text-2xl baskerville my-1 pb-2 font-bold">{{ .Title }}</h3> <div class=""> - <!-- {{ .Summary }} --> - {{ .Summary | replaceRE `<sup.*?><a href.*?#fn:.*?footnote-ref.*?/a></sup>` "" | safeHTML }} + {{ .Summary | replaceRE `<sup.*?><a href.*?#fn:.*?footnote-ref.*?/a></sup>` "" | plainify }} </div> </div> </div> |