feat: add permalinks to sections

This commit is contained in:
Bruno Carlin 2025-06-17 01:35:34 +02:00
parent e445fb56ae
commit 645a474cab
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 8E254EA0FFEB9B6D

View file

@ -0,0 +1,6 @@
<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
{{ .Text }}
<a href="#{{ .Anchor }}">
{{- partial "icon.html" (dict "icon" "links-line" "label" "Permalink to this section") -}}
</a>
</h{{ .Level }}>