mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
docs(Diagrams): Update mermaid import mechanism (#1967)
This commit is contained in:
1 parent
4aceb68551
commit
1b11dcd5c5
1 file changed
+2
-2
@@ -58,8 +58,8 @@ And then include this snippet at the bottom of the content template (**Note**: b
|
||||
|
||||
```go-html-template
|
||||
{{ if .Page.Store.Get "hasMermaid" }}
|
||||
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
||||
<script>
|
||||
<script type="module">
|
||||
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
|
||||
mermaid.initialize({ startOnLoad: true });
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
Reference in new issue
Block a user