diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html new file mode 100644 index 0000000..c34170e --- /dev/null +++ b/layouts/_default/_markup/render-codeblock-mermaid.html @@ -0,0 +1,4 @@ +
+ {{- .Inner | safeHTML }} ++ {{ .Page.Store.Set "hasMermaid" true }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b749725..16ae178 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -35,6 +35,13 @@ {{- end }} + {{ if .Page.Store.Get "hasMermaid" }} + + {{ end }} +