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.
956 B
956 B
+++ title = "No mandatory JavaScript" date = 2023-01-06 updated = 2023-07-08 description = "JavaScript is only used when HTML and CSS aren't enough."
[taxonomies] tags = ["showcase"] +++
JavaScript?
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:
- 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.
KaTeX support, which requires loading a 274 KB JavaScript file, can be activated for specific posts. This can be done by setting katex = true
in the post's [extra]
section of the post's front matter.
Other than that, it's a fast site with HTML and CSS. Just the way (most of) the web should be :-)