add copy code button and config param #122

This commit is contained in:
Dmitry Kolosov 2022-01-18 19:56:02 +03:00
parent 4be0a7b13a
commit 05206ec021
6 changed files with 115 additions and 3 deletions

View file

@ -83,6 +83,7 @@ params:
style: light-without-switcher
readMore: false
disableSummary: false
copyCodeButton: true # true by default
# utteranc.es support
utterancesRepo: "" # mandatory
utterancesTheme: "" # optional
@ -131,9 +132,9 @@ Now enter [`localhost:1313`](http://localhost:1313/) in the address bar of your
### Dark Mode
Customize via `style` param in `params` section of config.
Options:
- `light-without-switcher` - light theme, without switcher, JS-free (by default)
- `dark-without-switcher` - dark theme, without switcher, JS-free
- `auto-without-switcher` - theme based on user system settings, without switcher, JS-free
- `light-without-switcher` - light theme, without switcher (by default)
- `dark-without-switcher` - dark theme, without switcher
- `auto-without-switcher` - theme based on user system settings, without switcher
- `light` - light theme by default, can be switched by user to dark theme and back. Theme settings are saved for user
- `dark` - dark theme by default, can be switched by user to light theme and back. Theme settings are saved for user
- `auto` - theme based on user system settings by default, can be switched by user to dark/light theme. Theme settings are saved for user (by default in example sites)