Remove .html from URLs

This commit is contained in:
Mirai Kumiko 2025-05-26 14:08:46 +02:00
parent fb01daeb1e
commit dcfa770f2c
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
3 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@
</content>
<p>
{{ range (.GetTerms "tags") }}
<a class="blog-tags" href="{{ .RelPermalink }}">#{{ lower .LinkTitle }}</a>
<a class="blog-tags" href="{{ .RelPermalink | replaceRE "\\.html$" "" }}">#{{ lower .LinkTitle }}</a>
{{ end }}
</p>
{{ if not .Params.hideReply }}