blob: fdbe8076230db021c50f0a46278a30784c7df5ea (
plain)
1
2
3
4
5
6
7
8
9
|
{{- $text := .Text -}}
{{- $hash := print (truncate 8 "" (sha256 .Page.Permalink)) -}}
{{- $id := print $hash "-" .Anchor -}}
<h{{ .Level }} id="{{ $id | safeURL }}">
<a title="{{ $text | safeHTML }}" href="#{{ $id | safeURL }}">
{{ $text | safeHTML }}
</a>
</h{{ .Level }}>
|