diff --git a/static/mermaid.css b/static/mermaid.css new file mode 100644 index 0000000..65fcb28 --- /dev/null +++ b/static/mermaid.css @@ -0,0 +1,26 @@ +.mermaid { + + .nodeLabel { + color: #A9A9B3 !important; + } + + .edgePaths path { + stroke: #A9A9B3 !important; + } + + .marker path { + stroke: #cad3f5; + fill: #A9A9B3; + } + + .cluster rect { + fill: #1B1C1D !important; + stroke: #1F202E !important; + } + + .node rect { + fill: #131415 !important; + stroke: #1F202E !important; + } + +} \ No newline at end of file diff --git a/themes/hello-friend-ng/layouts/_default/_markup/render-codeblock-mermaid.html b/themes/hello-friend-ng/layouts/_default/_markup/render-codeblock-mermaid.html new file mode 100644 index 0000000..abb31f8 --- /dev/null +++ b/themes/hello-friend-ng/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/themes/hello-friend-ng/layouts/_default/baseof.html b/themes/hello-friend-ng/layouts/_default/baseof.html index 2c80de9..4cf9ca4 100644 --- a/themes/hello-friend-ng/layouts/_default/baseof.html +++ b/themes/hello-friend-ng/layouts/_default/baseof.html @@ -1,25 +1,29 @@ - - {{ partial "head.html" . }} - - {{ block "body" . }} - + + {{ partial "head.html" . }} + + + +{{ block "body" . }} + + {{ end }} - -