mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-09-02 19:52:40 +00:00
🚚 Feat(i): rename load-mathjax.js to mathjax.js
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as params from '@params'
|
||||
import params from '@params'
|
||||
|
||||
/**
|
||||
* Load MathJax script dynamically
|
||||
@@ -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,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" . -}}
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user