Skip to content

Commit 174fbb3

Browse files
committed
Enable syntax highlighting, select theme
Zola only has one theme, so switching dark/light is not that easy. Doing in per individual CSS class would be possible, but quite annoying to tweak. Maybe there's a better option at some point, for now light theme living with dark code should be OK.
1 parent 795b3be commit 174fbb3

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

website/config.toml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,37 @@ build_search_index = false
2222
[markdown]
2323
# Whether to do syntax highlighting
2424
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
25-
highlight_code = false
25+
highlight_code = true
26+
27+
# A list of directories used to search for additional `.sublime-syntax` and `.tmTheme` files.
28+
# More on https://www.getzola.org/documentation/getting-started/configuration/#syntax-highlighting.
29+
extra_syntaxes_and_themes = []
30+
31+
# The theme to use for code highlighting.
32+
# See below for list of allowed values.
33+
34+
# Similar ones in style.
35+
#highlight_theme = "charcoal"
36+
#highlight_theme = "one-dark"
37+
highlight_theme = "two-dark"
38+
#highlight_theme = "agola-dark"
39+
#highlight_theme = "nyx-bold"
40+
41+
# Other options that might potentially fit.
42+
# highlight_theme = "1337"
43+
# highlight_theme = "ayu-mirage"
44+
# highlight_theme = "base16-atelierdune-light"
45+
# highlight_theme = "base16-ocean-dark"
46+
# highlight_theme = "cheerfully-light"
47+
# highlight_theme = "demain"
48+
# highlight_theme = "dimmed-fluid"
49+
# highlight_theme = "gruvbox-dark"
50+
# highlight_theme = "inspired-github"
51+
# highlight_theme = "ir-white"
52+
# highlight_theme = "kronuz"
53+
# highlight_theme = "nord"
54+
# highlight_theme = "Tomorrow"
55+
2656

2757
[extra]
2858
enable_search = false

0 commit comments

Comments
 (0)