From 91aaddf4a2a7e5ea519da886ea6f78c64c3b070f Mon Sep 17 00:00:00 2001 From: Robbie Nohra Date: Sun, 20 Dec 2020 18:39:29 -0500 Subject: [PATCH] add native KaTeX support --- layouts/_default/baseof.html | 3 +++ layouts/partials/math.html | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 layouts/partials/math.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 44edc4a..71c428d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,6 +5,9 @@ {{ if .IsHome }}{{ $.Site.Title }}{{ else }}{{ .Title }} :: {{ $.Site.Title }}{{ end }} {{ end }} {{ partial "head.html" . }} + {{ if or .Params.math .Site.Params.math }} + {{ partial "math.html" . }} + {{ end }} {{ $container := cond $.Site.Params.FullWidthTheme "container full" (cond $.Site.Params.CenterTheme "container center" "container") }} diff --git a/layouts/partials/math.html b/layouts/partials/math.html new file mode 100644 index 0000000..7d7a060 --- /dev/null +++ b/layouts/partials/math.html @@ -0,0 +1,8 @@ + + + + + + +