Allow disabling anchored headings

Usage =>
For site-wide:
    Params.disableAnchoredHeadings: true

For front-matter:
    disableAnchoredHeadings: true
This commit is contained in:
Aditya Telange 2021-06-10 23:10:40 +05:30
parent 378b81cb36
commit da69dda48c
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -26,7 +26,9 @@
{{- partial "toc.html" . }}
{{- end }}
<div class="post-content">
{{- if not (.Param "disableAnchoredHeadings") }}
{{- partial "anchored_headings.html" .Content -}}
{{- else }}{{ .Content }}{{ end }}
</div>
<footer class="post-footer">
{{- if .Params.tags }}