fix script loading
parent
178b92b0a0
commit
048f98fd22
|
@ -37,7 +37,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- vnu --skip-non-html --also-check-css --errors-only exampleSite/public
|
- vnu --skip-non-html --also-check-css --errors-only exampleSite/public
|
||||||
|
|
||||||
- name: dead-links-validation
|
- name: link-validation
|
||||||
image: xoxys/link-validator
|
image: xoxys/link-validator
|
||||||
commands:
|
commands:
|
||||||
- link-validator -ro
|
- link-validator -ro
|
||||||
|
@ -168,6 +168,6 @@ depends_on:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 6c9fc660b81ed9086e1bcb0f8176ba6b084834bc7ecafbaa0573943760698330
|
hmac: 6d920a9019c2478a391c98d207313ff77782c987f3869e9410d8174146fd07ef
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
{{ if not (.Page.Scratch.Get "mermaid") }}
|
{{ if not (.Page.Scratch.Get "mermaid") }}
|
||||||
<!-- Include mermaid only first time -->
|
<!-- Include mermaid only first time -->
|
||||||
<script defer src="{{ "js/mermaid.min.js" | relURL }}"></script>
|
<script defer src="{{ "js/mermaid.min.js" | relURL }}"></script>
|
||||||
<script defer>
|
<script>
|
||||||
mermaid.initialize({
|
document.addEventListener("DOMContentLoaded", function(event) {
|
||||||
flowchart: { useMaxWidth: true }
|
mermaid.initialize({
|
||||||
});
|
flowchart: { useMaxWidth: true }
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
{{ .Page.Scratch.Set "mermaid" true }}
|
{{ .Page.Scratch.Set "mermaid" true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue