vanilla-hugo/layouts/_default/_markup/render-heading.html

7 lines
193 B
HTML
Raw Permalink Normal View History

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