Use ids internally and for entry links instead of the full text title
This commit is contained in:
parent
bebf4fc986
commit
d3d1519f23
4 changed files with 49 additions and 35 deletions
|
@ -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>
|
||||
|
|
Reference in a new issue