From 1e8c432c2e43a9d8da0d80be59acd44e16125dbd Mon Sep 17 00:00:00 2001 From: zainkhan-afk Date: Tue, 21 Feb 2023 14:51:07 +0500 Subject: [PATCH] Added Katex support, equations can be rendered now --- layouts/partials/head.html | 1 + layouts/partials/katex.html | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 layouts/partials/katex.html diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 35257fc..8a54710 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -73,6 +73,7 @@ {{- else }} {{- end }} +{{ if .Params.math }}{{ partial "katex.html" . }}{{ end }} {{- /* Search */}} {{- if (eq .Layout `search`) -}} diff --git a/layouts/partials/katex.html b/layouts/partials/katex.html new file mode 100644 index 0000000..eb1336a --- /dev/null +++ b/layouts/partials/katex.html @@ -0,0 +1,19 @@ + + + + + + + + + \ No newline at end of file