mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix: update MathJax options to disable menu when explicitly set to false
This commit is contained in:
@@ -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,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" . -}}
|
||||
|
||||
Reference in New Issue
Block a user