Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/third-party/mermaid.html')
-rw-r--r--layouts/partials/third-party/mermaid.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/third-party/mermaid.html b/layouts/partials/third-party/mermaid.html
index e4442e2..8c46ccf 100644
--- a/layouts/partials/third-party/mermaid.html
+++ b/layouts/partials/third-party/mermaid.html
@@ -1,6 +1,8 @@
-<script src="https://cdn.jsdelivr.net/npm/mermaid@8.8.3/dist/mermaid.min.js"></script>
+{{- $src := partial "utils/lib.html" (dict "type" "mermaid") -}}
+
+<script src="{{ $src }}"></script>
<script>
- let mermaidConfig = {
+ const mermaidConfig = {
startOnLoad: true,
flowchart: {
useMaxWidth: false,