diff options
author | LiuZhichao <liuzc89@gmail.com> | 2018-09-18 03:48:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-18 03:48:08 +0300 |
commit | c9ceedca9fd3aa6e23573dd233db688b2f0b31a9 (patch) | |
tree | 244c2c0c932ba1b3461d3e171ebf8e117094d95f | |
parent | 4e8672ebbc636ba1d0e96573d25739a5295d879b (diff) |
Update README.md
Add how to toggle dark-light mode instructions
-rw-r--r-- | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -84,6 +84,9 @@ HUGO_ENV=production hugo --gc --minify This theme write style with scss, So you must download and install the “extended” Sass/SCSS version +#### How to toggle dark-light mode +* You can click the love heart ❤️ in front of your blog title to toggle dark-light mode. I don't think it's a good interaction design. But I don't have a good idea. +* If you want to make your own theme toggle-able element, you can create an element with a class `.theme-switch`. See [here](https://github.com/liuzc/LeaveIt/blob/4e8672ebbc636ba1d0e96573d25739a5295d879b/assets/js/main.js#L32) # Home Post model If you want to show posts on index instead of a personal profile, just open config.toml in the base of the Hugo site, add the following line to config.toml |