-
Notifications
You must be signed in to change notification settings - Fork 186
Comment
Now, this theme support these comment service:
- LiveRe
- Gitalk
- Disqus
- Twikoo
- Waline
- Utterances
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.)
Notice: Gitalk will not shown in offline preview server.(Launched by hugo server
)
To add a disqus comment service, please add a line to config.toml
in the root directory, under [params]
:
[params]
disqusShortname = "Your disqus short name."
Thanks for nicholaskajoh and jenlky's feedback.
Edit your config.toml
in the hugo website's root directory.
Add the following line to the section [params]
livereId = "xxxx"
"xxxx" stands for the value of data-uid
in your LiveRe HTML code.
Edit your config.toml
in the hugo website's root directory.
Add the following line to the section [params]
enableTwikoo = true
twikooEnvId = "twikoo-YourEnvId"
Replace YourEnvId with your actual environment id.
If your Tencent Cloud Environment is deployed in Guangzhou server, don't forget to add this:
twikooRegion = "ap-guangzhou"
Edit your config.toml
in the hugo website's root directory.
Add the following line to the section [params]
walineServer = "https://yourappaddress.vercel.app"
walineServer
is corresponding to serverURL
.
Edit your config.toml
in the hugo website's root directory.
Add the following line to the section [params]
enableUtterances = true
And add a new section named params.utterances
, like this:
[params.utterances]
repo="your repo"
term="[ENTER TERM HERE]"
label="your label"
theme="github-light"
To add other services, you can edit ./layouts/partials/comment.html
and ./layouts/partials/head.html
by yourself.
And you can also open an issue, reminding me to add a feature.
If you wanna to disable the comment in a specific post, please add a line in the metadata area of the post:
comment : false
A more detailed description of the posts' meta data is here.
Please remove the settings item referred in "Add comment".
The comment area will not be shown.