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

github.com/dzello/reveal-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Genest <david.genest@ubisoft.com>2022-10-23 01:13:38 +0300
committerDavid Genest <david.genest@ubisoft.com>2022-10-23 01:13:38 +0300
commitc82ab18c94486a2d3ea7e36132879a0e0e7064c0 (patch)
treea5759a592269b6303363e3df013b96ba22a972c9
parent1c7822db0cf24629d632369be779545804b8ea6a (diff)
Fixes default initializer for mermaid loading
The initialization should have been false and then changed to true if mermaid was found, this was probably a debugging leftover.
-rw-r--r--layouts/partials/layout/javascript.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/layout/javascript.html b/layouts/partials/layout/javascript.html
index 4022bf5..aefbf93 100644
--- a/layouts/partials/layout/javascript.html
+++ b/layouts/partials/layout/javascript.html
@@ -63,11 +63,11 @@
to the slidechanged event. (mermaid viewBox element has wrong sizes).
manage hot-reload by using the reveal ready event.
*/}}
-{{ $hasMermaid := true }}
+{{ $hasMermaid := false }}
{{ range .Site.RegularPages }}
-{{ if .Store.Get "hasMermaid" }}
- {{ $hasMermaid = true }}
-{{ end }}
+ {{ if .Store.Get "hasMermaid" }}
+ {{ $hasMermaid = true }}
+ {{ end }}
{{ end }}
{{ if $hasMermaid }}