{{- $pageWantsAnchors := .Page.Params.renderHeadingAnchors | default true -}} {{- $anchorEnabledForThisHeading := .Attributes.anchor | default true -}} {{- $hasAnchor := and $pageWantsAnchors $anchorEnabledForThisHeading -}} {{- if $hasAnchor -}} # {{- end -}} {{ .Text | safeHTML }}