自己在建置的時候查了很多資料,整理完希望幫助到有需要的人
此篇文章主要教學 Disqus 建置
新增留言功能
至 Disqus 註冊帳號
選擇 I want to install Disqus on my site
.
到 Disqus API Application 註冊 application
- 點選 Register new application
- 完成後就會给你一個 API Key
設定 Hexo
themes/next/_config.yml1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19# Disqus
disqus:
enable: true
shortname:
count: true
# DisqusJS
# Alternative Disqus - Render comment component using Disqus API.
# Demo: https://suka.js.org/DisqusJS/
# For more information: https://github.com/SukkaW/DisqusJS
disqusjs:
enable: true
# API Endpoint of Disqus API (https://disqus.com/api/).
# Leave api empty if you are able to connect to Disqus API. Otherwise you need a reverse proxy for it.
# For example:
# api: https://disqus.skk.moe/disqus/
api:
apikey: # Register new application from https://disqus.com/api/applications/
shortname: # See: https://disqus.com/admin/settings/general/完成