diff --git a/exampleSiteMultilingual/hugo.toml b/exampleSiteMultilingual/hugo.toml index 762083d..2be01ba 100644 --- a/exampleSiteMultilingual/hugo.toml +++ b/exampleSiteMultilingual/hugo.toml @@ -25,7 +25,7 @@ readNextPosts = 2 copyCodeButton = true rssAsSocialIcon = true locale = "en-us" -mathjax = true +math = false # true: enable mathjax globally (default is false) toc = true # Graphcomment support diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1cd71a7..d97227d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -20,6 +20,7 @@ {{ end }} -{{ if .Site.Params.mathjax }}{{ partial "mathjax_support.html" . }}{{ end }} +{{/* .Params is the current page config. .Site.Params is globall config in hugo.toml */}} +{{ if or .Site.Params.math .Params.math }}{{ partial "mathjax_support.html" . }}{{ end }} {{ partial "header-extra.html" . }}