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 }}