From 6bc21de1183285791bc82c26da41ea5bb85a1e75 Mon Sep 17 00:00:00 2001 From: slashformotion Date: Sat, 21 Aug 2021 15:56:16 +0200 Subject: [PATCH] Fix choice katex/mathjax switch Fixes #29 --- exampleSite/config.toml | 2 +- exampleSite/static/css/hugo-tufte-override.css | 1 + exampleSite/static/hugo-tufte-override.css | 2 -- layouts/partials/header.includes.html | 4 +--- layouts/partials/math.html | 4 ++-- static/js/main.js | 12 ------------ 6 files changed, 5 insertions(+), 20 deletions(-) create mode 100644 exampleSite/static/css/hugo-tufte-override.css delete mode 100644 exampleSite/static/hugo-tufte-override.css delete mode 100644 static/js/main.js diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b4f10b1..ffb5c11 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -13,7 +13,7 @@ title = "Hugo-tufte Theme Example Site" math = true # (If math is enabled) ## if "katex" is set to true katex will be used to render LaTex, if not MathJax will be used instead -katex = false +katex = true [params] # Subtitle of the website diff --git a/exampleSite/static/css/hugo-tufte-override.css b/exampleSite/static/css/hugo-tufte-override.css new file mode 100644 index 0000000..3d0b1ac --- /dev/null +++ b/exampleSite/static/css/hugo-tufte-override.css @@ -0,0 +1 @@ +/* Nothing here yet, (This file is waiting your customizations) */ \ No newline at end of file diff --git a/exampleSite/static/hugo-tufte-override.css b/exampleSite/static/hugo-tufte-override.css deleted file mode 100644 index f39c0d7..0000000 --- a/exampleSite/static/hugo-tufte-override.css +++ /dev/null @@ -1,2 +0,0 @@ -This file is the last hugo-tufte related css file -loaded by the theme, and so personal customization can go here. diff --git a/layouts/partials/header.includes.html b/layouts/partials/header.includes.html index 2d3a379..8f1bbc6 100644 --- a/layouts/partials/header.includes.html +++ b/layouts/partials/header.includes.html @@ -15,12 +15,10 @@ - - {{ $htoptions := (dict "targetPath" "/css/hugo-tufte.min.css" "outputStyle" "compressed" "enableSourceMap" true) }} {{ $htstyle := resources.Get "scss/hugo-tufte.scss"| resources.ExecuteAsTemplate "main.scss" . | resources.ToCSS $htoptions }} - + diff --git a/layouts/partials/math.html b/layouts/partials/math.html index 31131c1..60366bf 100644 --- a/layouts/partials/math.html +++ b/layouts/partials/math.html @@ -2,7 +2,7 @@ - -