{{- if .Params.chapter }} {{- end }} {{- partial "custom-comments.html" . }}
{{- if .HasShortcode "mermaid" }} {{- 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 }} > if (typeof mermaid != 'undefined') { mermaid.mermaidAPI.initialize( Object.assign( { "securityLevel": "antiscript" }, JSON.parse({{ $.Scratch.Get "mermaidInitialize" }}), { startOnLoad: false } ) ); } {{- end }} {{- end }} {{- partial "custom-footer.html" . }}