0%

[筆記] Hexo - nexT 基礎配置 (三)

自己在建置的時候查了很多資料,整理完希望幫助到有需要的人
此篇文章主要教學 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

    1
    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/
  6. 完成
    圖片