vanilla-hugo/layouts/_default/_markup/render-heading.html
Danila Fedorin 7b3ef86744 Write up and down arrows on internal links to headings
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-23 13:52:43 -07:00

5 lines
156 B
HTML

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