Update for new Hugo versions
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
6
layouts/_markup/render-heading.html
Normal file
6
layouts/_markup/render-heading.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{- .Page.Scratch.SetInMap "definedSections" (printf "#%s" .Anchor) true -}}
|
||||
<a href="#{{ .Anchor }}">
|
||||
<h{{ .Level }} id="{{ .Anchor }}">
|
||||
{{- .Text | safeHTML -}}
|
||||
</h{{ .Level }}>
|
||||
</a>
|
||||
Reference in New Issue
Block a user