{{- partial "custom-comments.html" . }} {{- partial "menu.html" . }} {{- $wantsMermaid := or (and (eq (.Scratch.Get "relearnOutputFormat") "HTML") (.Page.Store.Get "htmlHasMermaid")) (and (eq (.Scratch.Get "relearnOutputFormat") "PRINT") (.Page.Store.Get "printHasMermaid")) }} {{- if (or $wantsMermaid (and (ne .Params.disableMermaid nil) (not .Params.disableMermaid)) (and (ne .Site.Params.disableMermaid nil) (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" "{}" }} {{- end }} {{- end }} {{- $wantsSwagger := or (and (eq (.Scratch.Get "relearnOutputFormat") "HTML") (.Page.Store.Get "htmlHasSwagger")) (and (eq (.Scratch.Get "relearnOutputFormat") "PRINT") (.Page.Store.Get "printHasSwagger")) }} {{- if (or $wantsSwagger (and (ne .Params.disableSwagger nil) (not .Params.disableSwagger)) (and (ne .Site.Params.disableSwagger nil) (not .Site.Params.disableSwagger)) ) }} {{- if isset .Params "customswaggerurl" }} {{- else if isset .Site.Params "customswaggerurl" }} {{- else }} {{- end }} {{- if isset .Params "swaggerinitialize" }} {{- $.Scratch.Set "swaggerInitialize" .Params.swaggerInitialize }} {{- else if isset .Site.Params "swaggerinitialize" }} {{- $.Scratch.Set "swaggerInitialize" .Site.Params.swaggerInitialize }} {{- else }} {{- $.Scratch.Set "swaggerInitialize" "{}" }} {{- end }} {{- end }} {{- partial "custom-footer.html" . }}