From 069af8541ac4b860249cc7695c5202c6e3e2c1e5 Mon Sep 17 00:00:00 2001 From: Rise <8315221+AmazingRise@users.noreply.github.com> Date: Sat, 23 Nov 2019 21:01:41 +0800 Subject: Created Customization (markdown) --- Customization.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Customization.md diff --git a/Customization.md b/Customization.md new file mode 100644 index 0000000..096bf84 --- /dev/null +++ b/Customization.md @@ -0,0 +1,48 @@ +# Customization + +## Change color scheme +(From *theme*'s root directory) Go to `assets/scss/journal.scss`. + +And modify the color value in the first line. +``` +$color-accent: #1976d2; +``` +Then re-generate the website. + +You can see the new color scheme now. + +## Add comment area +### Gitalk +Edit your `config.toml` in the hugo website's root directory. + +Add the following line to the section `[params]` +``` +enableGitalk = true +``` +Then add following lines behind: +``` +[params.gitalk] + owner = "user" + repo = "repo name" + client_id = "your client id" + client_secret = "your client secret" +``` +(Modify to suit your condition.) + +### Disqus +Hugo originally supports Disqus, and I added the disqus to the theme. + +But due to my network environment, I haven't had it tested. + +To add a disqus comment service, please add a line to `config.toml` in the root directory: + +``` +disqusShortname = "Your disqus short name." +``` +If some bugs happens, please feel free to open an issue or PR. + +### Other comment service + +Welcome to open an issue or Pull Request for adding a new comment service. + +If I'm free then, I will add it. :P \ No newline at end of file -- cgit v1.2.3