新增留言功能
- 至 Disqus 註冊帳號
2. 選擇 I want to install Disqus on my site
3. .
4. 到 Disqus API Application 註冊 application
- 點選 Register new application
- 完成後就會给你一個 API Key
5. 設定 Hexo
themes/next/_config.yml
# 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/
6. 完成