mirror of
https://github.com/imfing/hextra.git
synced 2025-08-23 06:46:47 -04:00
fix(katex): fall back to cdn when neither base or css is set
This commit is contained in:
@@ -18,9 +18,13 @@
|
||||
*/ -}}
|
||||
{{- $noop := .WordCount -}}
|
||||
|
||||
{{- $katexBase := "https://cdn.jsdelivr.net/npm/katex@latest/dist" -}}
|
||||
{{- $katexBase := "" -}}
|
||||
{{- with site.Params.math.katex.base -}}
|
||||
{{- $katexBase = . -}}
|
||||
{{- else -}}
|
||||
{{- if not site.Params.math.katex.css -}}
|
||||
{{- $katexBase = "https://cdn.jsdelivr.net/npm/katex@latest/dist" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $katexCssAsset := "" -}}
|
||||
|
Reference in New Issue
Block a user