diff --git a/exampleSite/archetypes/default.md b/exampleSite/archetypes/default.md
index 64808c8..1ad97da 100644
--- a/exampleSite/archetypes/default.md
+++ b/exampleSite/archetypes/default.md
@@ -5,6 +5,7 @@ tags: []
categories: []
weight: 50
show_comments: true
+katex: false
draft: true
---
diff --git a/exampleSite/content/posts/latex-support.md b/exampleSite/content/posts/latex-support.md
new file mode 100644
index 0000000..440d9ca
--- /dev/null
+++ b/exampleSite/content/posts/latex-support.md
@@ -0,0 +1,31 @@
+---
+title: "Latex Support"
+date: 2022-09-20T09:36:26+08:00
+tags: []
+categories: []
+weight: 50
+show_comments: true
+katex: true
+draft: false
+---
+
+This article contians some test for latex support. Currently the lib used for rendering LaTeX is [\\(\LaTeX\\)](https://katex.org/)
+
+
+
+$$
+\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
+$$
+
+
+## The code which render the above
+
+```
+This article contians some test for latex support. Currently the lib used for rendering LaTeX is [\\(\LaTeX\\)](https://katex.org/)
+
+$$
+\pi=\int_{-\infty}^\infty\frac{dx}{1+x^2}
+$$
+
+We support \\(\LaTeX\\) now!
+```
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 90cd4c4..9748b0e 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -11,6 +11,18 @@
{{ end }}
+{{/* load katex if enabled on front matter */}}
+{{ if .Params.katex }}
+
+
+
+
+
+
+
+{{ end }}
+
{{ with and .Site.Params.remark42 .Params.show_comments }}
{{ $remark42 := $.Site.Params.remark42 }}
+
+
+
+
+ ...
+