From 6133ec1043f5ff56b79663fe6b7d64ed839522fd Mon Sep 17 00:00:00 2001 From: machsix <28209092+machsix@users.noreply.github.com> Date: Thu, 16 May 2019 14:19:08 -0400 Subject: [PATCH 1/4] fea: katex support --- exampleSite/config.toml | 3 +++ layouts/partials/footer.html | 39 +++++++++++++++++++++++++++++++++ layouts/partials/head-meta.html | 5 +++++ 3 files changed, 47 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 63cfd55..acca408 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -80,6 +80,9 @@ theme = "hugo-bootstrap" # Default author author = "John Doe" + # Enable katex globally, or add "katex: true" for specific post + katex = true + # Date format (default: Jan 2, 2006) # date_format = "Jan 2, 2006" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 36dd6ce..09bdc99 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -6,6 +6,45 @@ {{ $copyright := default $thanks .Site.Copyright }} {{ $colorScheme := default "light" .Site.Params.footer.colorScheme }} +{{ if $.Param "katex" }} + + + +{{ end }} +