We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd5e69b commit 88ec5aeCopy full SHA for 88ec5ae
layouts/_default/_markup/td-render-heading.html
@@ -1,4 +1,6 @@
1
-<h{{ .Level }} id="{{- .Anchor | safeURL -}}">
+<h{{ .Level }} id="{{ .Anchor | safeURL }}"
2
+ {{- with .Attributes.class }} class="{{ . }}" {{- end -}}
3
+>
4
{{- .Text | safeHTML -}}
5
{{ template "_default/_markup/_td-heading-self-link.html" . -}}
6
</h{{ .Level }}>
userguide/content/en/docs/adding-content/navigation.md
@@ -314,6 +314,7 @@ params:
314
{{< /tabpane >}}
315
316
## Heading self links
317
+{.test-class}
318
319
Docsy supports build-time generation of heading self links using Hugo's
320
`render-heading.html` [hook].
0 commit comments