content: Fix typo

This commit is contained in:
Oliver Webb
2025-08-14 10:02:05 -05:00
committed by GitHub
parent 22fb436953
commit 58e3609a0b
+1 -1
View File
@@ -347,7 +347,7 @@ A _render hook_ template overrides the conversion of Markdown to HTML.
For example, the _render hook_ template below adds an anchor link to the right of each heading. For example, the _render hook_ template below adds an anchor link to the right of each heading.
```go-html-template {file="layouts/_markup/heading.html"} ```go-html-template {file="layouts/_markup/render-heading.html"}
<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}> <h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
{{ .Text }} {{ .Text }}
<a href="#{{ .Anchor }}">#</a> <a href="#{{ .Anchor }}">#</a>