diff --git a/layouts/partials/dependencies/mathjax.html b/layouts/partials/dependencies/mathjax.html index 3b0b0913b4..89f5957643 100644 --- a/layouts/partials/dependencies/mathjax.html +++ b/layouts/partials/dependencies/mathjax.html @@ -34,9 +34,9 @@ } useMathJax( JSON.parse({{ $init }}) ); - {{- if isset .Params "custommathjaxurl" }} + {{- if and (isset .Params "custommathjaxurl") .Params.customMathJaxURL }} - {{- else if isset .Site.Params "custommathjaxurl" }} + {{- else if and (isset .Site.Params "custommathjaxurl") .Site.Params.customMathJaxURL }} {{- else }} diff --git a/layouts/partials/dependencies/mermaid.html b/layouts/partials/dependencies/mermaid.html index 8dc42af60a..435bf870a8 100644 --- a/layouts/partials/dependencies/mermaid.html +++ b/layouts/partials/dependencies/mermaid.html @@ -10,9 +10,9 @@ - {{- if isset .Params "custommermaidurl" }} + {{- if and (isset .Params "custommermaidurl") .Params.customMermaidURL }} - {{- else if isset .Site.Params "custommermaidurl" }} + {{- else if and (isset .Site.Params "custommermaidurl") .Site.Params.customMermaidURL }} {{- else }} diff --git a/layouts/partials/dependencies/openapi.html b/layouts/partials/dependencies/openapi.html index 18dd29bd3a..bbf94eac32 100644 --- a/layouts/partials/dependencies/openapi.html +++ b/layouts/partials/dependencies/openapi.html @@ -1,9 +1,9 @@ {{- $page := .page }} {{- with $page }} {{- $urlOpenapi := "" }} - {{- if isset .Params "customopenapiurl" }} + {{- if and (isset .Params "customopenapiurl") .Params.customOpenapiURL }} {{- $urlOpenapi = .Params.customOpenapiURL }} - {{- else if isset .Site.Params "customopenapiurl" }} + {{- else if and (isset .Site.Params "customopenapiurl") .Site.Params.customOpenapiURL }} {{- $urlOpenapi = .Site.Params.customOpenapiURL }} {{- else }} {{- $urlOpenapi = "js/swagger-ui/swagger-ui-bundle.js" | relURL }}