diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-02-15 12:27:20 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-02-15 12:27:20 -0500 |
commit | 4c380d5291e49c687b2ce90974b58b975d131c3b (patch) | |
tree | d535c2d80bdf930c08fa471c7a32333627485d51 /themes/cranky | |
parent | 4ad767fcc40b13427d5b09060814d047f0eabc5a (diff) |
Implement mathjax and continue guitar hero
Diffstat (limited to 'themes/cranky')
-rw-r--r-- | themes/cranky/config.toml | 18 | ||||
-rw-r--r-- | themes/cranky/layouts/_default/baseof.html | 1 |
2 files changed, 18 insertions, 1 deletions
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 @@ <meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}"> {{ if isset .Params "tags" }}<meta name="keywords" content="{{ with .Params.tags }}{{ delimit . ", " }}{{ end }}"> {{ end -}} + {{ if .Param "math" }} {{ partialCached "math.html" . }} {{ end }} <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="robots" content="index, follow"> <meta charset="utf-8"> |