Remove .html from URLs

This commit is contained in:
Mirai Kumiko 2025-05-26 14:25:07 +02:00
parent dcfa770f2c
commit 3bf203df3b
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278

View file

@ -28,7 +28,7 @@
{{ if not .Data.Singular }}
<div>
{{ range .Site.Taxonomies.tags }}
<a class="blog-tags" href="{{ .Page.RelPermalink }}">#{{ lower .Page.Title }}</a>
<a class="blog-tags" href="{{ .Page.RelPermalink | replaceRE "\\.html$" "" }}">#{{ lower .Page.Title }}</a>
{{ end }}
</div>
{{ end }}