From 0a6e711f817f743e55241dcc0137b3472ca394b5 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 8 Feb 2022 21:14:08 +0000 Subject: [PATCH] refactor: site.params.math -> site.Params.features.math.enable BREAKING CHANGE See #2601 --- wowchemy/layouts/partials/site_head.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wowchemy/layouts/partials/site_head.html b/wowchemy/layouts/partials/site_head.html index e04ce2a8..98b869b7 100644 --- a/wowchemy/layouts/partials/site_head.html +++ b/wowchemy/layouts/partials/site_head.html @@ -87,7 +87,7 @@ {{ end }} {{/* Config LaTeX math rendering. */}} - {{ if or .Params.math site.Params.math }} + {{ if or .Params.math site.Params.features.math.enable }} {{ $mathjax_config := resources.Get "js/mathjax-config.js" }} {{ end }} @@ -180,7 +180,7 @@ {{ $load := $v.async }} {{/* Only load MathJax if required. */}} - {{ if (eq $k "mathJax") | and (not (or $.Params.math site.Params.math)) }} + {{ if (eq $k "mathJax") | and (not (or $.Params.math site.Params.features.math.enable)) }} {{ $load = false }} {{ end }}