From dccf79cbed00e7a92ef221a41ceb7e05e6b25d73 Mon Sep 17 00:00:00 2001 From: Rasmus Stougaard Date: Thu, 28 Oct 2021 20:56:32 +0200 Subject: [PATCH] Fix: customMermaidURL can be used in site and frontmatter (#518) Change param name to lower case, since all site-level configuration keys are stored as lower case. According to official hugo documentation: https://gohugo.io/functions/isset/ This allows loading custom mermaid.js using the config option, as specified in https://learn.netlify.app/en/basics/configuration/ Co-authored-by: Rasmus Stougaard --- layouts/partials/footer.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 11c7e9330ac..8ebe857a948 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -71,9 +71,9 @@ {{ if (or (and (ne .Params.disableMermaid nil) (not .Params.disableMermaid)) (not .Site.Params.disableMermaid)) }} - {{ if isset .Params "customMermaidURL" }} + {{ if isset .Params "custommermaidurl" }} - {{ else if isset .Site.Params "customMermaidURL" }} + {{ else if isset .Site.Params "custommermaidurl" }} {{ else }}