diff --git a/content/en/templates/types.md b/content/en/templates/types.md index 6e5ea1b34..8c533a56f 100644 --- a/content/en/templates/types.md +++ b/content/en/templates/types.md @@ -323,17 +323,13 @@ For example, the home template below inherits the site's shell from the [base te A render hook template overrides the conversion of Markdown to HTML. -For example, the render hook template below adds a `rel` attribute to external links. +For example, the render hook template below adds an anchor link to the right of each heading. -```go-html-template {file="layouts/_markup/render-link.html"} -{{- $u := urls.Parse .Destination -}} - - {{- with .Text }}{{ . }}{{ end -}} - -{{- /* chomp trailing newline */ -}} +```go-html-template {file="layouts/_markup/heading.html"} + + {{ .Text }} + # + ``` Learn more about [render hook templates](/render-hooks/).