fix: xypic diagram color at dark theme and update MathJax script loading options

This commit is contained in:
Cell
2025-09-19 17:20:43 +08:00
parent 50488dfb51
commit 42a5ebdc71
3 changed files with 13 additions and 2 deletions
+11
View File
@@ -511,6 +511,17 @@
max-width: 100%;
overflow-x: auto;
overflow-y: hidden;
// fix the color of xypic diagrams
mjx-xypic {
g {
stroke: currentColor !important;
}
mjx-xypic-object {
color: currentColor !important;
fill: currentColor !important;
}
}
}
@import '../_partials/_single/alert';
+1 -1
View File
@@ -324,7 +324,7 @@ FixIt theme assets partial
{{- if not hugo.IsProduction -}}
{{- $options = dict "sourceMap" "external" | merge $options -}}
{{- end -}}
{{- dict "Source" (resources.Get "js/lib/mathjax.js") "Build" $options "Fingerprint" $fingerprint "Async" true "Defer" true | dict "Page" . "Data" | partial "store/script.html" -}}
{{- dict "Source" (resources.Get "js/lib/mathjax.js") "Build" $options "Fingerprint" $fingerprint "Defer" true | dict "Page" . "Data" | partial "store/script.html" -}}
{{- end -}}
{{- /* Mermaid plugin */ -}}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20250916043850-a228cce0" -}}
{{- hugo.Store.Set "version" "v0.4.0-alpha.2-20250919092044-50488dfb" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}