Hexo — nexT 基礎配置 (三)

鍾家蓉
Apr 9, 2021

自己在建置的時候查了很多資料,整理完希望幫助到有需要的人
此篇文章主要教學 Disqus 建置

新增留言功能

  1. 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. 完成

--

--