Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/queensferryme/hugo-theme-texify.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQueensferry <queensferry.me@gmail.com>2022-04-02 09:03:29 +0300
committerQueensferry <queensferry.me@gmail.com>2022-04-02 09:07:28 +0300
commit8a29bede0ab551c53930e3b36f09015d43900264 (patch)
treeb3c15a18d69ce79aa5fc28a6541eb524ead50cd0
parent534ee9468a5c8cea588a05cc5f2a994db819a28f (diff)
feat: enable math on a per-page basis
-rw-r--r--config.toml6
-rw-r--r--layouts/_default/baseof.html2
2 files changed, 4 insertions, 4 deletions
diff --git a/config.toml b/config.toml
index e5bde27..14d09fa 100644
--- a/config.toml
+++ b/config.toml
@@ -73,14 +73,14 @@ toc = false # whether to enable table of contents in posts
# https://giscus.app
[params.giscus]
-enable = true # whether to enable giscus
+enable = false # whether to enable giscus
# paste giscus' <script></script> configuration between the triple quotes
script = """
"""
[params.math]
-enable = true # whether to enable math typesetting
-use = "katex" # katex or mathjax
+enable = false # whether to enable math typesetting
+use = "katex" # katex or mathjax
[params.outdated]
enable = true # whether to display warnings for outdated posts
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index ef3f2a7..dccf8fe 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -29,7 +29,7 @@
{{ end }}
<!-- math -->
- {{ if .Site.Params.math.enable }}
+ {{ if or .Site.Params.math.enable .Params.math }}
{{ partial "math.html" . }}
{{ end }}