Add math render codeblock and math shortcode.
This commit is contained in:
parent
91c01f30a0
commit
936892fe7b
1 changed files with 37 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
{{ if or ($.Param "math") (.Page.Store.Get "math") (.HasShortcode "math") -}}
|
||||
<link rel="stylesheet" href="{{ "katex/katex.min.css" | relURL }}">
|
||||
<script defer src="{{ "katex/katex.min.js" | relURL }}"></script>
|
||||
<script defer src="{{ "katex/contrib/auto-render.min.js" | relURL }}"></script>
|
||||
{{ $math := resources.Get "js/math.js" | minify | fingerprint -}}
|
||||
<script defer src="{{ $math.RelPermalink }}"></script>
|
||||
{{ end -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue