about summary refs log tree commit diff homepage
path: root/_layout
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-18 12:36:39 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-18 12:36:39 +0900
commit0154f00b08057faaa452105987cc6ef336058a92 (patch)
treecb4749106763b382956adde5c6602db7b2cb550a /_layout
parentf4d3d4f01b539a3824ee000a275a3bcf3a5643c6 (diff)
downloadsite-0154f00b08057faaa452105987cc6ef336058a92.tar.gz
Switch to MathML for web pages
Diffstat (limited to '_layout')
-rw-r--r--_layout/foot.html2
-rw-r--r--_layout/head.html1
2 files changed, 1 insertions, 2 deletions
diff --git a/_layout/foot.html b/_layout/foot.html
index 43530ed..8edabc4 100644
--- a/_layout/foot.html
+++ b/_layout/foot.html
@@ -1,6 +1,6 @@
 {{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}}
+<script>renderMathInElement(document.body, {output: 'mathml'})</script>{{end}}
 {{if hascode}}<script src=/libs/highlight/highlight.pack.js></script>
 <script>hljs.initHighlightingOnLoad()</script>{{end}}
 </body>
diff --git a/_layout/head.html b/_layout/head.html
index 3e4d65f..763c35f 100644
--- a/_layout/head.html
+++ b/_layout/head.html
@@ -1,6 +1,5 @@
 {{insert hair.html}}
 {{isnotempty rss}}<meta name=description content="{{rss_description}}">{{end}}
-{{if hasmath}}<link rel=stylesheet href=/css/katex.min.css>{{end}}
 {{isdef title}}<title>{{title}} - McSinyx</title>{{end}}
 <body>
 {{insert header.html}}