Use ids internally and for entry links instead of the full text title

This commit is contained in:
ChaoticByte 2025-07-11 23:20:27 +02:00
parent bebf4fc986
commit d3d1519f23
No known key found for this signature in database
4 changed files with 49 additions and 35 deletions

View file

@ -25,8 +25,8 @@
<input type="text" id="search-box" placeholder="search">
<div id="search-results" class="hidden"></div>
<div class="toc" id="toc">
{{- range .TOC -}}
<div><a href="{{ . }}">{{ . }}</a></div>
{{- range $k, $title := .TOC -}}
<div><a href="{{ $k }}">{{ $title }}</a></div>
{{- end -}}
</div>
</div>