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 -}}
|
||||
<h{{ .Level }} id="{{ .Anchor }}">
|
||||
<a href="#{{ .Anchor }}">
|
||||
<h{{ .Level }} id="{{ .Anchor }}">
|
||||
{{- .Text | safeHTML -}}
|
||||
</h{{ .Level }}>
|
||||
</h{{ .Level }}>
|
||||
</a>
|
||||
|
|
Loading…
Reference in New Issue
Block a user