mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 09:32:27 +00:00
Switch themes to minimo
This commit is contained in:
14
themes/minimo/layouts/partials/footer/mermaid.html
Normal file
14
themes/minimo/layouts/partials/footer/mermaid.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{- $defaultMermaid := .Site.Data.config.default.mermaid -}}
|
||||
{{- $mermaid := ( or .Site.Data.config.mermaid $defaultMermaid ) -}}
|
||||
|
||||
{{- if eq .Params.mermaid true -}}
|
||||
|
||||
<script src='{{- $mermaid.library.path -}}' />
|
||||
|
||||
<script type='text/javascript'>
|
||||
mermaid.initialize(
|
||||
{{- $mermaid.config | jsonify | safeJS -}}
|
||||
);
|
||||
</script>
|
||||
|
||||
{{- end -}}
|
Reference in New Issue
Block a user