mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-07-16 11:41:27 +00:00
Fixed issue when no shortcode mermaid is present
This commit is contained in:
parent
25c454d5c8
commit
5a609d33fc
@ -82,8 +82,8 @@
|
||||
{{ partial "docs/toc" . }}
|
||||
{{ end }}
|
||||
{{ if .Store.Get "hasMermaid" }}
|
||||
<script src="{{ "mermaid.min.js" | relURL }}"></script>
|
||||
<script type="module">
|
||||
import mermaid from 'mermaid.min.js';
|
||||
mermaid.initialize({ startOnLoad: true });
|
||||
</script>
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user