renamed default_mode to default_theme, streamlined the code for theme switching, added documentation

This commit is contained in:
Speyll
2023-10-05 22:38:45 +01:00
parent f8d26c5907
commit 520cbd0dbc
3 changed files with 49 additions and 30 deletions

View File

@@ -95,6 +95,24 @@ en = { name = "/blog/", url = "/blog" }
fr = { name = "/blog/", url = "/blog" }
```
#### Default Theme
To configure the default theme, simply utilize the `default_theme` variable and set it to either `light` or `dark`:
```toml
[extra]
default_theme = "light"
```
#### Display Author Name in Blog Posts
Customize the display of the author's name in your blog posts by toggling the `display_author` variable to either `true` or `false`:
```toml
[extra]
display_author = true
```
### Webrings
Add a webring with a shortcode: