mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-11 15:16:45 -04:00
Correct heading render hook example
This commit is contained in:
parent
4b696f936d
commit
a49214057c
@ -128,7 +128,7 @@ Here is a code example for how the render-image.html template could look:
|
|||||||
Given this template file
|
Given this template file
|
||||||
|
|
||||||
{{< code file=layouts/_default/_markup/render-heading.html >}}
|
{{< code file=layouts/_default/_markup/render-heading.html >}}
|
||||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}">¶</a></h{{ .Level }}>
|
<h{{ .Level }} id="{{ .Anchor }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}">¶</a></h{{ .Level }}>
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
And this markdown
|
And this markdown
|
||||||
|
Loading…
x
Reference in New Issue
Block a user