about summary refs log tree commit diff homepage
path: root/_layout/foot.html
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-11-16 17:35:21 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-11-16 17:35:21 +0700
commitac73f7ff7739157254bfcec36ef9463c86b0de72 (patch)
tree0ec1c17c81a56d0ecb0754bad489124a2e3f4545 /_layout/foot.html
parentf3074f4e4e88e0f27ac115535479382460cdfb82 (diff)
downloadsite-ac73f7ff7739157254bfcec36ef9463c86b0de72.tar.gz
Overhaul style
Diffstat (limited to '_layout/foot.html')
-rw-r--r--_layout/foot.html14
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>