{{- if .Params.chapter }}
{{- end }}
{{- partial "custom-comments.html" . }}
{{- if (or (and (ne .Params.disableMermaid nil) (not .Params.disableMermaid)) (not .Site.Params.disableMermaid)) }}
{{- if isset .Params "custommermaidurl" }}
{{- else if isset .Site.Params "custommermaidurl" }}
{{- else }}
{{- end }}
{{- if isset .Params "mermaidinitialize" }}
{{- $.Scratch.Set "mermaidInitialize" .Params.mermaidInitialize }}
{{- else if isset .Site.Params "mermaidinitialize" }}
{{- $.Scratch.Set "mermaidInitialize" .Site.Params.mermaidInitialize }}
{{- else }}
{{- $.Scratch.Set "mermaidInitialize" "{ \"startOnLoad\": true }" }}
{{- end }}
{{- end }}
{{- partial "custom-footer.html" . }}