diff options
author | Josh Dzielak <dzello@users.noreply.github.com> | 2022-11-08 12:07:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 12:07:02 +0300 |
commit | d5b1a17dd0f59ebbdadb1b2a010deb00159d6e14 (patch) | |
tree | b50da95b981cfe1efca43dc8eae9e9a45014c356 | |
parent | fc0f15edaf7dfd21e0dda404b7a36d0cc901360a (diff) | |
parent | d5b2aae94fe93cfb0f5487107cfd21c891be8224 (diff) |
uses .AllPages to evaluate if mermaid is present
-rw-r--r-- | layouts/partials/layout/javascript.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/layout/javascript.html b/layouts/partials/layout/javascript.html index 70f4c8b..a5d9981 100644 --- a/layouts/partials/layout/javascript.html +++ b/layouts/partials/layout/javascript.html @@ -64,7 +64,7 @@ manage hot-reload by using the reveal ready event. */}} {{ $hasMermaid := false }} -{{ range .Site.RegularPages }} +{{ range .Site.AllPages }} {{ if .Store.Get "hasMermaid" }} {{ $hasMermaid = true }} {{ end }} |