extra config option to allow users to select their own style

This commit is contained in:
Robert Clarke 2019-05-06 00:23:38 +00:00
parent e5b09a5d60
commit bb48d3da34
10 changed files with 153 additions and 61 deletions

View file

@ -149,12 +149,19 @@ In extra, setting `zulma_theme` to a valid value will change the current colour
- pulse
- simplex
Choosing no theme will set default as the theme. Setting an invalid theme value will cause the site to render improperly.
All valid themes can also be found under the `extras.zulma_themes` variable in the `config.toml`. Choosing no theme will set default as the theme. Setting an invalid theme value will cause the site to render improperly.
```toml
[extra]
zulma_theme = "darkly"
```
Additionally, in extra, you can also set the `zulma_allow_theme_selection` boolean. Setting this to true will allow a menu in the footer to allow users to select their own theme. This requires javascript to be enabled to function; if the page detects javascript is disabled on the clients machine, it will hide itself.
```toml
[extra]
zulma_allow_theme_selection = true
```
## Original
This template is based on the [blog template](https://dansup.github.io/bulma-templates/templates/blog.html) over at [Free Bulma Templates](https://dansup.github.io/bulma-templates/). The code behind from adapted from the [after-dark](https://github.com/getzola/after-dark/blob/master/README.md) zola template.