From 8a29bede0ab551c53930e3b36f09015d43900264 Mon Sep 17 00:00:00 2001 From: Queensferry Date: Sat, 2 Apr 2022 14:03:29 +0800 Subject: feat: enable math on a per-page basis --- config.toml | 6 +++--- layouts/_default/baseof.html | 2 +- 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' 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 }} - {{ if .Site.Params.math.enable }} + {{ if or .Site.Params.math.enable .Params.math }} {{ partial "math.html" . }} {{ end }} -- cgit v1.2.3