From 3fcbe790af0269941975c17cd2f9619ab36880ef Mon Sep 17 00:00:00 2001 From: Bin Zhang Date: Fri, 16 Oct 2020 15:18:02 +0800 Subject: add mathjax support --- layouts/partials/footer.html | 3 +++ layouts/partials/mathjax_support.html | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 layouts/partials/mathjax_support.html diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a35c5a4..c7d0f3a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -5,6 +5,9 @@ using the pulp theme.

+{{ if .Params.mathjax }} + {{ partial "mathjax_support.html" . }} +{{ end }} {{- range .Site.Params.custom_js -}} {{ end }} diff --git a/layouts/partials/mathjax_support.html b/layouts/partials/mathjax_support.html new file mode 100644 index 0000000..3696d5c --- /dev/null +++ b/layouts/partials/mathjax_support.html @@ -0,0 +1,19 @@ + + + -- cgit v1.2.3