hugo-theme-minima/layouts/partials/diagram.html

9 lines
242 B
HTML
Raw Permalink Normal View History

2022-11-09 13:51:50 +01:00
{{ if eq .Site.Params.diagram.provider "mermaid" }}
2022-11-09 09:03:19 +01:00
<script
src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"
crossorigin="anonymous">
</script>
2021-08-19 06:42:47 +02:00
<script>
2022-11-09 11:03:38 +01:00
mermaid.init(undefined, 'code.language-mermaid')
2022-11-09 13:51:50 +01:00
</script>
{{ end }}