From 74634a54fb0b4e67a28f26ef0dd8ffb0fa61ca9c Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Mon, 26 Oct 2026 23:30:44 +0000 Subject: [PATCH] Added mermaid support --- hugo/layouts/_markuprender-codeblock-mermaid.html | 4 ++++ hugo/layouts/baseof.html | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 hugo/layouts/_markuprender-codeblock-mermaid.html create mode 100644 hugo/layouts/baseof.html diff --git a/hugo/layouts/_markuprender-codeblock-mermaid.html b/hugo/layouts/_markuprender-codeblock-mermaid.html new file mode 100644 index 00000000..42e8abfd --- /dev/null +++ b/hugo/layouts/_markuprender-codeblock-mermaid.html @@ -0,0 +1,4 @@ +
+  {{ .Inner | htmlEscape | safeHTML }}
+
+{{ .Page.Store.Set "hasMermaid" true }} diff --git a/hugo/layouts/baseof.html b/hugo/layouts/baseof.html new file mode 100644 index 00000000..5faa6bfc --- /dev/null +++ b/hugo/layouts/baseof.html @@ -0,0 +1,6 @@ +{{ if .Store.Get "hasMermaid" }} + +{{ end }}