{{ if not (.Page.Scratch.Get "mermaid") }} {{ with resources.Get "mermaid.json" }} {{ end }} {{ .Page.Scratch.Set "mermaid" true }} {{ end }}
  {{- .Inner -}}