summaryrefslogtreecommitdiff
path: root/themes/cranky
diff options
context:
space:
mode:
Diffstat (limited to 'themes/cranky')
-rw-r--r--themes/cranky/config.toml18
-rw-r--r--themes/cranky/layouts/_default/baseof.html1
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">