🚚 Feat(i): rename load-mathjax.js to mathjax.js

This commit is contained in:
Cell
2025-08-14 09:53:09 +08:00
parent 08d3c62b31
commit ba6cc4ed8e
4 changed files with 8 additions and 7 deletions
@@ -1,4 +1,4 @@
import * as params from '@params'
import params from '@params'
/**
* Load MathJax script dynamically
+2 -2
View File
@@ -107,8 +107,8 @@
{{- /* MathJax */ -}}
{{- if eq $math.type "mathjax" -}}
{{- $mathjax := $math.mathjax -}}
{{- $source := "js/lib/load-mathjax.js" -}}
{{- $options := dict "targetPath" "js/lib/load-mathjax.min.js" "minify" hugo.IsProduction -}}
{{- $source := "js/lib/mathjax.js" -}}
{{- $options := dict "targetPath" "js/lib/mathjax.min.js" "minify" hugo.IsProduction -}}
{{- $mathjaxOpts := $mathjax.options | default dict -}}
{{- $mathjaxOpts = dict "enableMenu" $mathjaxOpts.enablemenu | merge $mathjaxOpts -}}
{{- $params := dict
+1 -1
View File
@@ -1,4 +1,4 @@
{{- hugo.Store.Set "version" "v0.4.0-alpha-20250813095356-7b9c3e62" -}}
{{- hugo.Store.Set "version" "v0.4.0-alpha-20250814015310-08d3c62b" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}
+4 -3
View File
@@ -348,11 +348,12 @@
{{- end -}}
{{- /* KaTeX for Twikoo */ -}}
{{- if $twikoo.enable | and $twikoo.katex -}}
{{- $source := "https://cdn.jsdelivr.net/npm//katex@0.16.22/dist/katex.min.css" -}}
{{- $katexVersion := "0.16.22" -}}
{{- $source := printf "https://cdn.jsdelivr.net/npm/katex@%s/dist/katex.min.css" $katexVersion -}}
{{- dict "Source" $source "Fingerprint" $fingerprint | dict "Page" . "Data" | partial "store/style.html" -}}
{{- $source := "https://cdn.jsdelivr.net/npm//katex@0.16.22/dist/katex.min.js" -}}
{{- $source := printf "https://cdn.jsdelivr.net/npm/katex@%s/dist/katex.min.js" $katexVersion -}}
{{- dict "Source" $source "Fingerprint" $fingerprint "Defer" true | dict "Page" . "Data" | partial "store/script.html" -}}
{{- $source := "https://cdn.jsdelivr.net/npm//katex@0.16.22/dist/contrib/auto-render.min.js" -}}
{{- $source := printf "https://cdn.jsdelivr.net/npm/katex@%s/dist/contrib/auto-render.min.js" $katexVersion -}}
{{- dict "Source" $source "Fingerprint" $fingerprint "Defer" true | dict "Page" . "Data" | partial "store/script.html" -}}
{{- end -}}
{{- end -}}