mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 09:32:27 +00:00
Switch themes to minimo
This commit is contained in:
16
themes/minimo/layouts/partials/footer/katex.html
Normal file
16
themes/minimo/layouts/partials/footer/katex.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{- $defaultKatex := .Site.Data.config.default.katex -}}
|
||||
{{- $katex := ( or .Site.Data.config.katex $defaultKatex ) -}}
|
||||
|
||||
{{- if or ( eq .Params.katex true ) ( .HasShortcode "katex" ) -}}
|
||||
|
||||
<link rel='stylesheet' href='{{- $katex.library.css.main -}}'>
|
||||
<script src='{{- $katex.library.js.main -}}'></script>
|
||||
<script src='{{- $katex.library.js.autoRender -}}'></script>
|
||||
|
||||
<script type='text/javascript'>
|
||||
renderMathInElement(document.querySelector('.entry-content'),
|
||||
{{- $katex.options | jsonify | safeJS -}}
|
||||
);
|
||||
</script>
|
||||
|
||||
{{- end -}}
|
Reference in New Issue
Block a user