mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-12 08:59:57 -04:00
docs(Diagrams): Update mermaid import mechanism (#1967)
This commit is contained in:
parent
4aceb68551
commit
1b11dcd5c5
@ -58,8 +58,8 @@ And then include this snippet at the bottom of the content template (**Note**: b
|
|||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{ if .Page.Store.Get "hasMermaid" }}
|
{{ if .Page.Store.Get "hasMermaid" }}
|
||||||
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
<script type="module">
|
||||||
<script>
|
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
|
||||||
mermaid.initialize({ startOnLoad: true });
|
mermaid.initialize({ startOnLoad: true });
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user