feat: add permalinks to sections
This commit is contained in:
parent
e445fb56ae
commit
645a474cab
1 changed files with 6 additions and 0 deletions
6
themes/bcarlin/layouts/_markup/render-heading.html
Normal file
6
themes/bcarlin/layouts/_markup/render-heading.html
Normal 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 }}>
|
Loading…
Add table
Reference in a new issue