You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.5 KiB
1.5 KiB
+++ title = "No mandatory JavaScript" date = 2023-01-06 updated = 2023-08-01 description = "JavaScript is only used when HTML and CSS aren't enough."
[taxonomies] tags = ["showcase", "tutorial"] +++
This theme has no mandatory JavaScript. Optionally, it can load a minimal amount to add some features that are impossible to achieve with HTML and CSS.
Globally enabled settings
- Light/dark mode switch. Enabled by setting
theme_switcher = true
. (~900 bytes) - One-click copy of code blocks. Enabled by setting
copy_button = true
. (~700 bytes)
These two settings can be applied in the [extra]
section of your config.toml
file.
- Comments. giscus (2 KB), utterances (1 KB), Hyvor Talk (~800 bytes) or Isso (1KB) can be globally enabled by setting
enabled_for_all_posts = true
in the right section of yourconfig.toml
(i.e.[extra.giscus]
,[extra.utterances]
,[extra.hyvortalk]
or[extra.isso]
).
Page-specific settings
The following settings can be enabled on specific posts by setting certain variables in the [extra]
section of the post's front matter.
- KaTeX support (274 KB) can be enabled it by setting
katex = true
. - Comments can be enabled on individual posts by setting the name of the system
= true
(e.g.hyvortalk = true
).
Other than that, it's a fast theme with HTML and CSS which works with JavaScript disabled. Just the way (most of) the web should be :-)