Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/liuzc/LeaveIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiuZhichao <liuzc89@gmail.com>2018-09-18 03:48:08 +0300
committerGitHub <noreply@github.com>2018-09-18 03:48:08 +0300
commitc9ceedca9fd3aa6e23573dd233db688b2f0b31a9 (patch)
tree244c2c0c932ba1b3461d3e171ebf8e117094d95f
parent4e8672ebbc636ba1d0e96573d25739a5295d879b (diff)
Update README.md
Add how to toggle dark-light mode instructions
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4c00580..e7d19fc 100644
--- a/README.md
+++ b/README.md
@@ -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