Skip to content

Commit da69dda

Browse files
committed
Allow disabling anchored headings
Usage => For site-wide: Params.disableAnchoredHeadings: true For front-matter: disableAnchoredHeadings: true
1 parent 378b81c commit da69dda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

layouts/_default/single.html

+2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ <h1 class="post-title">
2626
{{- partial "toc.html" . }}
2727
{{- end }}
2828
<div class="post-content">
29+
{{- if not (.Param "disableAnchoredHeadings") }}
2930
{{- partial "anchored_headings.html" .Content -}}
31+
{{- else }}{{ .Content }}{{ end }}
3032
</div>
3133
<footer class="post-footer">
3234
{{- if .Params.tags }}

0 commit comments

Comments
 (0)