diff options
Diffstat (limited to '_layout/foot.html')
-rw-r--r-- | _layout/foot.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/_layout/foot.html b/_layout/foot.html index f87c1a1..95abfb5 100644 --- a/_layout/foot.html +++ b/_layout/foot.html @@ -1,9 +1,7 @@ -<!-- CONTENT ENDS HERE --> - {{ if hasmath }} - {{ insert foot_katex.html }} - {{ end }} - {{ if hascode }} - {{ insert foot_highlight.html }} - {{ end }} - </body> +{{if hasmath}}<script src=/libs/katex/katex.min.js></script> +<script src=/libs/katex/auto-render.min.js></script> +<script>renderMathInElement(document.body)</script>{{end}} +{{if hascode}}<script src=/libs/highlight/highlight.pack.js></script> +<script>hljs.initHighlightingOnLoad();</script>{{end}} +</body> </html> |