From b290e70ecead40dbf2f8f0fee087dca3e52c7440 Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Tue, 28 Dec 2021 11:59:32 -0800 Subject: [PATCH] Add support for LaTeX in posts --- blog/layouts/partials/head-additions.html | 4 +++- blog/layouts/partials/helpers/katex.html | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 blog/layouts/partials/helpers/katex.html diff --git a/blog/layouts/partials/head-additions.html b/blog/layouts/partials/head-additions.html index e3fc9ad..5645410 100644 --- a/blog/layouts/partials/head-additions.html +++ b/blog/layouts/partials/head-additions.html @@ -1,2 +1,4 @@ - \ No newline at end of file + + +{{ if .Params.math }}{{ partial "helpers/katex.html" . }}{{ end }} diff --git a/blog/layouts/partials/helpers/katex.html b/blog/layouts/partials/helpers/katex.html new file mode 100644 index 0000000..e2264e8 --- /dev/null +++ b/blog/layouts/partials/helpers/katex.html @@ -0,0 +1,4 @@ + + + +