diff options
author | Rise <8315221+AmazingRise@users.noreply.github.com> | 2020-02-14 13:59:37 +0300 |
---|---|---|
committer | Rise <8315221+AmazingRise@users.noreply.github.com> | 2020-02-14 13:59:37 +0300 |
commit | 4980ff013ecf01db5494b684d0695dabe3a51cc6 (patch) | |
tree | a091b52559c1c1699a4b7e43a38c3b99d997023d | |
parent | 2801723a8818f9118fd228e39c821fdc0adfebed (diff) |
Updated Customization (markdown)
-rw-r--r-- | Customization.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Customization.md b/Customization.md index 135df92..46a8c1a 100644 --- a/Customization.md +++ b/Customization.md @@ -31,6 +31,13 @@ Add `disableToC=true` to the section of `[param]` in your `config.toml`. Then you will not see the `table of contents`. ## Enable or disable comment area + +Now, this theme support these comment service: +- LiveRe +- Gitalk +- Disqus +- Valine + ### Enabling #### Gitalk Edit your `config.toml` in the hugo website's root directory. @@ -72,6 +79,23 @@ livereId = "xxxx" "xxxx" stands for the value of `data-uid` in your LiveRe HTML code. +#### Valine +Edit your `config.toml` in the hugo website's root directory. + +Add the following line to the section `[params]` +``` +enableValine = true +``` +Then add following lines behind: +``` +[params.valine] + appId = "Your app ID of leancloud" + appKey = "Your app key of leancloud" + avator = "avator type" +``` + +`avator` is optional. For details, [click here](https://valine.js.org/avatar.html). + #### Other comment service Welcome to open an issue or Pull Request for adding a new comment service. |