diff --git a/layouts/partials/vendor.html b/layouts/partials/vendor.html
index 52ce1df3..1932f8b2 100644
--- a/layouts/partials/vendor.html
+++ b/layouts/partials/vendor.html
@@ -1,39 +1,55 @@
{{/* Mermaid */}}
{{ if .Page.HasShortcode "mermaid" }}
{{ $mermaidJS := resources.Get "vendor/mermaid/mermaid.min.js" }}
- {{ if $mermaidJS }}
- {{ $mermaidJS := $mermaidJS | resources.Fingerprint "sha512" }}
-
- {{ end }}
+ {{ $mermaidJS := $mermaidJS | resources.Fingerprint "sha512" }}
+
{{ end }}
{{/* Chart */}}
{{ if .Page.HasShortcode "chart" }}
{{ $chartJS := resources.Get "vendor/chart/chart.min.js" }}
- {{ if $chartJS }}
- {{ $chartJS := $chartJS | resources.Fingerprint "sha512" }}
-
-
+ {{ $chartJS := $chartJS | resources.Fingerprint "sha512" }}
+
+
+{{ end }}
+{{/* Katex */}}
+{{ if .Page.HasShortcode "katex" }}
+ {{ $katexCSS := resources.Get "vendor/katex/katex.min.css" }}
+ {{ $katexCSS := $katexCSS | resources.Fingerprint "sha512" }}
+
+ {{ $katexJS := resources.Get "vendor/katex/katex.min.js" }}
+ {{ $katexJS := $katexJS | resources.Fingerprint "sha512" }}
+
+ {{ $katexRenderJS := resources.Get "vendor/katex/auto-render.min.js" }}
+ {{ $katexRenderJS := $katexRenderJS | resources.Fingerprint "sha512" }}
+
+ {{ $katexFonts := resources.Match "vendor/katex/fonts/*" }}
+ {{ range $katexFonts }}
+
{{ end }}
{{ end }}
diff --git a/layouts/shortcodes/katex.html b/layouts/shortcodes/katex.html
new file mode 100644
index 00000000..a4160bfb
--- /dev/null
+++ b/layouts/shortcodes/katex.html
@@ -0,0 +1 @@
+{{/* Nothing to see here */}}