From 4c380d5291e49c687b2ce90974b58b975d131c3b Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 15 Feb 2024 12:27:20 -0500 Subject: Implement mathjax and continue guitar hero --- themes/cranky/config.toml | 18 +++++++++++++++++- themes/cranky/layouts/_default/baseof.html | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'themes/cranky') diff --git a/themes/cranky/config.toml b/themes/cranky/config.toml index e884199..db48f1f 100644 --- a/themes/cranky/config.toml +++ b/themes/cranky/config.toml @@ -2,6 +2,19 @@ title = "Website Name" baseURL = 'https://example.org' languageCode = 'en-us' +[markup] + [markup.highlight] + style='onedark' + lineNos = true + tabWidth=2 + [markup.goldmark] + [markup.goldmark.extensions] + [markup.goldmark.extensions.passthrough] + enable = true + [markup.goldmark.extensions.passthrough.delimiters] + block = [['\\[', '\\]']] + inline = [['$$', '$$']] + [params] # "relatedtext" is the text that appears above the tag list at the bottom of pages. relatedtext = "Related" @@ -14,4 +27,7 @@ languageCode = 'en-us' #footer items nextprev = true taglist = true - showrss = true \ No newline at end of file + showrss = true + + #enable math by default + math = true diff --git a/themes/cranky/layouts/_default/baseof.html b/themes/cranky/layouts/_default/baseof.html index 57e17ce..0dadbcf 100644 --- a/themes/cranky/layouts/_default/baseof.html +++ b/themes/cranky/layouts/_default/baseof.html @@ -10,6 +10,7 @@ {{ if isset .Params "tags" }} {{ end -}} + {{ if .Param "math" }} {{ partialCached "math.html" . }} {{ end }} -- cgit v1.2.3