Use anchor heading attribute instead of bookHeadingAnchor

This commit is contained in:
Alex Shpak
2025-09-23 00:14:45 +02:00
parent 6ba59e191d
commit 95cee40b0f
2 changed files with 5 additions and 6 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class }} class="{{ . }}" {{- end }}>
{{ .Text }}
{{ if default true .Page.Params.bookHeadingAnchor }}
<h{{ .Level }} id="{{ .Anchor }}" {{- with .Attributes.class -}}class="{{ . }}"{{- end -}}>
{{- .Text -}}
{{- if default true .Attributes.anchor }}
<a class="anchor" href="#{{ .Anchor }}">#</a>
{{ end }}
{{- end -}}
</h{{ .Level }}>