From 4980ff013ecf01db5494b684d0695dabe3a51cc6 Mon Sep 17 00:00:00 2001 From: Rise <8315221+AmazingRise@users.noreply.github.com> Date: Fri, 14 Feb 2020 18:59:37 +0800 Subject: Updated Customization (markdown) --- Customization.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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. -- cgit v1.2.3