mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 22:15:11 +00:00
refactor: site.params.math -> site.Params.features.math.enable
BREAKING CHANGE See #2601
This commit is contained in:
1 parent
479b0ad9f1
commit
0a6e711f81
1 file changed
+2
-2
@@ -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" }}
|
||||
<script src="{{ $mathjax_config.RelPermalink }}"></script>
|
||||
{{ 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 }}
|
||||
|
||||
|
||||
Reference in new issue
Block a user