mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-07-16 19:51:22 +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" . }}
|
{{ partial "docs/toc" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Store.Get "hasMermaid" }}
|
{{ if .Store.Get "hasMermaid" }}
|
||||||
|
<script src="{{ "mermaid.min.js" | relURL }}"></script>
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import mermaid from 'mermaid.min.js';
|
|
||||||
mermaid.initialize({ startOnLoad: true });
|
mermaid.initialize({ startOnLoad: true });
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user