Write up and down arrows on internal links to headings

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2024-06-23 12:46:07 -07:00
parent 60041d1d37
commit 7b3ef86744
3 changed files with 24 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
{{- .Page.Scratch.SetInMap "definedSections" (printf "#%s" .Anchor) true -}}
<h{{ .Level }} id="{{ .Anchor }}">
{{- .Text | safeHTML -}}
</h{{ .Level }}>