From e1faa267bf0ec086e6a1b5ac23e89b7433b5fc2a Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 10 May 2016 02:49:28 +0100 Subject: [PATCH] Add support for global LaTeX math rendering (overrides per page `math` setting) --- exampleSite/config.toml | 3 +++ layouts/partials/footer.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 02163274..be96024c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -26,6 +26,9 @@ googleAnalytics = "" # Examples: "Mon, Jan 2, 2006" or "2006-01-02" date_format = "Mon, Jan 2, 2006" + # Enable global LaTeX math rendering? If false, you can enable it locally on a per page basis. + math = false + # Link custom CSS and JS assets (relative to /static/css and /static/js respectively) custom_css = [] custom_js = [] diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index cf646766..acb277fe 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -36,7 +36,7 @@ - {{ if and (isset .Params "math") (eq .Params.math true) }} + {{ if or (and (isset .Site.Params "math") (eq .Site.Params.math true)) (and (isset .Params "math") (eq .Params.math true)) }}