Make headings clickable
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
parent
f4e0bed9cd
commit
5b5b971538
|
@ -1,4 +1,6 @@
|
||||||
{{- .Page.Scratch.SetInMap "definedSections" (printf "#%s" .Anchor) true -}}
|
{{- .Page.Scratch.SetInMap "definedSections" (printf "#%s" .Anchor) true -}}
|
||||||
<h{{ .Level }} id="{{ .Anchor }}">
|
<a href="#{{ .Anchor }}">
|
||||||
{{- .Text | safeHTML -}}
|
<h{{ .Level }} id="{{ .Anchor }}">
|
||||||
</h{{ .Level }}>
|
{{- .Text | safeHTML -}}
|
||||||
|
</h{{ .Level }}>
|
||||||
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user