Browse Source

Fix setting of header id

Apis Necros 2 years ago
parent
commit
b0c3344fd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      layouts/_default/list.html

+ 1 - 1
layouts/_default/list.html

@@ -4,7 +4,7 @@
 	</div>
 	{{ range .Pages.ByPublishDate.Reverse }}
 	<div class="panel my-2">
-		<h2 id="{{ .Section }}-{{ .File.BaseFileName }}"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
+		<h2 id="{{ .Section }}-{{ .Title | anchorize }}"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
 		<div class="flex flex-row flex-wrap md:flex-nowrap mt-2">
 			<span class="image-wrapper w-full h-32 md:w-32 md:h-32">
 				<img srcset="/imgs/no-image-new.webp" src="/imgs/no-image-new.png" alt="Filler" />