fix: update MathJax options to disable menu when explicitly set to false

This commit is contained in:
Cell
2025-09-15 21:02:07 +08:00
parent 81c333ca63
commit 8cc38f6ca3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -112,8 +112,8 @@
{{- $options := dict "targetPath" "js/lib/mathjax.min.js" "minify" hugo.IsProduction -}}
{{- $mathjaxOptsConfig := $mathjax.options | default dict -}}
{{- $mathjaxOpts := dict -}}
{{- with $mathjaxOptsConfig.enableMenu -}}
{{- $mathjaxOpts = dict "enableMenu" . | merge $mathjaxOpts -}}
{{- if eq $mathjaxOptsConfig.enableMenu false -}}
{{- $mathjaxOpts = dict "enableMenu" false | merge $mathjaxOpts -}}
{{- end -}}
{{- with $mathjaxOptsConfig.ignoreHtmlClass -}}
{{- $mathjaxOpts = dict "ignoreHtmlClass" . | merge $mathjaxOpts -}}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20250912202339-c430a012" -}}
{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20250915130208-81c333ca" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}