惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
MyScale Blog
MyScale Blog
Y
Y Combinator Blog
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
V
Vulnerabilities – Threatpost
T
The Blog of Author Tim Ferriss
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
N
News and Events Feed by Topic
B
Blog RSS Feed
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
博客园 - 叶小钗
B
Blog
Vercel News
Vercel News
T
Tenable Blog
T
The Exploit Database - CXSecurity.com
Spread Privacy
Spread Privacy
T
Threat Research - Cisco Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
F
Fortinet All Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Microsoft Security Blog
Microsoft Security Blog
S
Securelist
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Palo Alto Networks Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
DataBreaches.Net
Cyberwarzone
Cyberwarzone
Engineering at Meta
Engineering at Meta
Martin Fowler
Martin Fowler
G
GRAHAM CLULEY
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
A
Arctic Wolf
C
CERT Recently Published Vulnerability Notes
L
LangChain Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
Check Point Blog
A
About on SuperTechFans
W
WeLiveSecurity
The GitHub Blog
The GitHub Blog

Icarus

Getting Started with Icarus Icarus User Guide - Configuring the Theme FAQ Cyberpunk Theme Variant Upgrade Guide Custom Hexo Tag Helpers 自定义Hexo标签插件 Hexo Built-in Tag Helpers Icarus User Guide - CDN Providers Icarus User Guide - Donation Buttons Icarus User Guide - Other Plugins Icarus User Guide - Share Buttons Icarus User Guide - Search Plugin Icarus User Guide - Web Analytics Plugins Icarus User Guide - Widgets Icarus快速上手 Icarus用户指南 - 主题配置 常见问题 升级指南
Icarus User Guide - Comment Plugins
PPOffice · 2017-01-31 · via Icarus

This article covers comment plugins supported by Icarus 5.

The following comment plugins are provided by ppoffice/hexo-component-inferno. Please refer to it for a complete list of supported plugins and their configuration details.

Changyan

Installation Guide

  1. First, log into Changyan. Get the comment HTML code by following this article.

  2. Copy the value of appid and conf to the corresponding settings in the theme configurations. For example, the following HTML code

    Changyan Installation Code >folded
    1
    2
    3
    4
    5
    6
    7
    8
    9

    <div id="SOHUCS" sid="..."></div>
    <script charset="utf-8" type="text/javascript" src="https://cy-cdn.kuaizhan.com/upload/changyan.js" ></script>
    <script type="text/javascript">
    window.changyan.api.config({
    appid: '????appid????',
    conf: 'prod_xxxxxxxxxxxxxxxxxxxxxxx'
    });
    </script>

    maps to the following theme configuration:

    _config.icarus.yml
    1
    2
    3
    4
    comment:
    type: changyan
    app_id: ????appid????
    conf: prod_xxxxxxxxxxxxxxxxxxxxxxx
  1. First, log into Disqus. Click the “GET STARTED” button on the front page or visit here and click “I want to install Disqus on my site” to create a new Disqus comment service.

    Get Started - Disqus
  2. On the create new site page, fill in the “Website Name” and “Category”, then click the “Create Site” button.

    Create Site - Disqus
  3. Select a subscription plan if you want to. You can also skip this by clicking “Install Disqus” on the left.

  4. Next, choose the platform where Disqus is to be installed. Select the “I don’t see my platform listed, install manually with Universal Code” on the bottom of the page.

    Select Platform - Disqus
  5. Click the “Configuration” button on the bottom of the page to skip the “Universal Code install instructions”.

  6. Make customizations to your Disqus service on the “Configure Disqus” page. Then, click the “Complete Setup” and “Dismiss Setup” buttons to finish the setup.

  7. Next, click the “Edit Settings” button on the top right corner of the comment service home page.

    Comment Service Homepage - Disqus
  8. Find the value of “Shortname” on the “Configure Disqus for Your Site” page, and copy it to the comment settings in the theme configurations. For example, the “Shortname” in the following screenshot is my-hexo-blog-1:

    Configure Disqus - Disqus

    which maps to the following theme configuration:

    _config.icarus.yml
    1
    2
    3
    comment:
    type: disqus
    shortname: my-hexo-blog-1
  9. (Optional) You can add disqusId in the front-matter of the post as the unique Disqus ID. Thereby, you can change the location of the post in the future without losing all your comments:

    source/_post/some-post.md
    1
    2
    3
    4
    5
    title: My first post
    date: 2015-01-01 00:00:01
    disqusId: some-disqus-id
    ---
    # Hello world

DisqusJS is an alternative for Disqus in areas where Disqus is restricted. You can refer to https://github.com/SukkaW/DisqusJS for the detailed configuration process of DisqusJS.

  1. Log into Disqus and visit here. Click the “Register new application” button or “registering an application” to create a new Disqus application.

    Applications - Disqus
  2. Fill in the “Label”, “Description”, and “Website” on the next page. Then, click “Register my application”.

    Register Application - Disqus
  3. After creating the application, go to the “Settings” tab of the application, fill in the domain name of your Hexo site, e.g., ppoffice.github.io, in the “Domains” field. Then, click the “Save Changes” button on the bottom of the page.

    Application Settings - Disqus
  4. Click the “Details” link on the current page to go to the home page of the current application. Copy the “API Key” in the “OAuth Settings” section to the corresponding setting in the theme configurations.

    For example, the “API Key” in the following screenshot:

    Application Details - Disqus

    maps to the following theme configuration:

    _config.icarus.yml
    1
    2
    3
    4
    5
    6
    7
    8
    comment:
    type: disqusjs
    shortname: my-hexo-blog-1
    api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    api: https://disqus.skk.moe/disqus/
    admin: ppoffice
    admin_label: Admin
    nesting: 4
  5. To learn more about DisqusJS and its configuration, visit SukkaW/DisqusJS documentation or hexo-component-inferno.

Facebook

Some AD blockers may block this comment plugin. Use it with caution.

  1. To enable Facebook comment, set the type of comment to facebook:

    _config.icarus.yml
    1
    2
    comment:
    type: facebook

Giscus

A comments system powered by GitHub Discussions.

  1. Prepare a public GitHub repository.

  2. Go to GitHub Apps - giscus and click “Install”.

    GitHub App Page - giscus
  3. (Optional) Select the user to install giscus to on the next page if you also have organizations under your account.


  4. On the next page, you can choose to install giscus to “All repositories” or “Only select repositories”. Then, click the “Install” button.


  5. You will be redirected to the giscus official site if the installation completes. You can review each configuration option and customize your giscus setup.

  6. When finished, move to the “Enable giscus” and copy the attribute values from the giscus HTML code to the corresponding settings in your theme configurations.

    Get Code - giscus

    For example, the giscus code below:

    giscus Installation Code >folded
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    <script src="https://giscus.app/client.js"
    data-repo="usr/repo"
    data-repo-id="X_xxxxxxxxxx"
    data-category="Announcements"
    data-category-id="XXX_xxxxxxxxxxxxxxxx"
    data-mapping="pathname"
    data-strict="0"
    data-reactions-enabled="0"
    data-emit-metadata="0"
    data-input-position="top"
    data-theme="noborder_light"
    data-lang="en"
    data-loading="lazy"
    crossorigin="anonymous"
    async>
    </script>

    maps to the following theme configuration:

    _config.icarus.yml
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    comment:
    type: giscus
    repo: Your-GitHub-Username/Your-Public-Repo-Name
    issue_term: pathname
    issue_number: 100
    label: some-issue-label
    theme: github-light
    comment:
    type: giscus
    repo: usr/repo
    repoId: X_xxxxxxxxxx
    category: Announcements
    categoryId: XXX_xxxxxxxxxxxxxxxx
    mapping: pathname
    strict: false
    reactionsEnabled: false
    emitMetadata: false
    inputPosition: top
    theme: noborder_light
    lang: en
    lazy: true

Gitalk

  1. Log into GitHub and click here to register a new OAuth application. Fill in the “Application name”, “Homepage URL”, and “Application description”. Then, type in the root URL of your Hexo site in the “Authorization callback URL” field. Click the “Register application” button to go to the application details page.

    Register OAuth Application - GitHub
  2. Copy the values of “Client ID” and “Client Secret” to the corresponding settings in the theme configurations.

    OAuth Application Settings - GitHub

    For example, the following “Client ID” and “Client Secret”:

    GitHub OAuth Application
    1
    2
    3
    4
    Client ID
    xxxxxxxxxxxxxxxxxxxx
    Client Secret
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    maps the following Gitalk configuration:

    _config.icarus.yml
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    comment:
    type: gitalk
    client_id: xxxxxxxxxxxxxxxxxxxx
    client_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    repo: Some-of-Your-GitHub-Repo
    owner: you_github_name
    admin:
    - you_github_name
    per_page: 20
    distraction_free_mode: false
    pager_direction: last
    create_issue_manually: false
    proxy:
    flip_move_options:
    enable_hotkey: true
    language: zh-CN
  3. You can review the description and possible values of the above configuration at Gitalk documentation or hexo-component-inferno.

Gitment

The maintenance of Gitment seems to be discontinued. You can choose Gitalk or utterances as an alternative GitHub Issue-based comment system.

Installation Guide

  1. Follow the steps in the Gitalk section to register a GitHub OAuth application.

  2. Copy the values of “Client ID” and “Client Secret” to the corresponding settings in the theme configurations.

    Here is an example of the Gitment configuration:

    _config.icarus.yml
    1
    2
    3
    4
    5
    6
    7
    8
    9
    comment:
    type: gitment
    owner: you_github_name
    repo: Some-of-Your-GitHub-Repo
    client_id: xxxxxxxxxxxxxxxxxxxx
    client_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    theme: gitment.defaultTheme
    per_page: 20
    max_comment_height: 250
  3. For more details on the above configuration, refer to Gitment documentation or hexo-component-inferno.

Isso

Isso is a valid choice if you wish to set up a self-hosted social comment system instead of relying on third-party ones. However, unlike the other services, Isso requires a web host for running the Isso server.

Installation Guide

  1. Follow the Isso documentation to install and run the Isso server.

  2. Fill in the HTTP URL of Isso server to the corresponding setting in the theme configurations. For example, if your service URL is https://posativ.org/isso/api/, you will have the following comment configuration:

    _config.icarus.yml
    1
    2
    3
    comment:
    type: isso
    url: posativ.org/isso/api

LiveRe

Some AD blockers may block this comment plugin. Use it with caution.

Installation Guide

  1. First, log into LiveRe. Click “Install” on the navigation bar to go to the installation page.

  2. Select the free “City” tier on the installation page and click the “Install Now” button.

    Select Plan - LiveRe
  3. Fill in the “Site URL”, “Name of website”, and “Choose site category” on the “Get LiveRe City code” page. Check “I have check the advertising terms…” and click the “Get code” button to be redirected to the LiveRe HTML code page.

    Configure Service - LiveRe
  4. Copy the value inside the quotes of data-uid="..." to the corresponding setting in the theme configurations.

    Get Code - LiveRe

    For example, the LiveRe code below:

    LiveRe Installation Code >folded
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18

    <div id="lv-container" data-id="city" data-uid="ABCD1234O0OxxxxXXXX000==">
    <script type="text/javascript">
    (function(d, s) {
    var j, e = d.getElementsByTagName(s)[0];

    if (typeof LivereTower === 'function') { return; }

    j = d.createElement(s);
    j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
    j.async = true;

    e.parentNode.insertBefore(j, e);
    })(document, 'script');
    </script>
    <noscript> Please activate JavaScript for write a comment in LiveRe</noscript>
    </div>

    maps to the following theme configuration:

    _config.icarus.yml
    1
    2
    3
    comment:
    type: livere
    uid: ABCD1234O0OxxxxXXXX000==

Twikoo

Twikoo is a self-hosted comment system based on cloud functions. Unlike other third-party comment services, the Twikoo backend needs to be deployed to a cloud environment before being configured and used by Icarus.

  1. Follow the Twikoo documentation to deploy the Twikoo cloud function to a cloud service provider of your choice.

  2. Fill in the env_id of your deployment to the corresponding setting in the theme configurations.

    _config.icarus.yml
    1
    2
    3
    4
    5
    comment:
    type: twikoo
    env_id: xxxxxxxx
    region: ap-guangzhou
    lang: zh-CN

utterances

  1. Prepare a public GitHub repository.

  2. Go to GitHub Apps - utterances and click “Install”.

    GitHub App Page - utterances
  3. (Optional) Select the user to install utterances to on the next page if you also have organizations under your account.

    Select User - utterances
  4. On the next page, you can choose to install utterances to “All repositories” or “Only select repositories”. Then, click the “Install” button.

    Select Repository - utterances
  5. You will be redirected to the utterances official site if the installation completes. You can review each configuration option and customize your utterances setup.

  6. When finished, move to the “Enable utterances” and copy the attribute values from the utterances HTML code to the corresponding settings in your theme configurations.

    Get Code - utterances

    For example, the utterances code below:

    utterances Installation Code >folded
    1
    2
    3
    4
    5
    6
    7
    <script src="https://utteranc.es/client.js"
    repo="Your-GitHub-Username/Your-Public-Repo-Name"
    issue-term="pathname"
    theme="github-light"
    crossorigin="anonymous"
    async>
    </script>

    maps to the following theme configuration:

    _config.icarus.yml
    1
    2
    3
    4
    5
    6
    7
    comment:
    type: utterances
    repo: Your-GitHub-Username/Your-Public-Repo-Name
    issue_term: pathname
    issue_number: 100
    label: some-issue-label
    theme: github-light

Valine


A vulnerability has been found in Valine that the comment service exposes IP addresses of all commenters (xCss/Valine#336). Please use alternative comment services until this issue has been fixed.

  1. Create a LeanCloud application following the Quickstart guide.

  2. Copy the “App ID” and “App Key” of your LeanCloud application to the corresponding settings in the theme configurations. In addition, you can refer to the Config Reference to find out the details and possible values of the optional settings. Here is an example configuration:

    _config.icarus.yml
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    comment:
    type: valine
    app_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    app_key: xxxxxxxxxxxxxxxxxxxxxx
    placeholder: ""
    avatar: mm
    avatar_force: false
    meta: ["nick", "mail", "link"]
    page_size: 10
    lang: zh-CN
    visitor: false
    highlight: true
    record_ip: false
    server_urls:
    emoji_cdn:
    emoji_maps:
    enable_qq: false
    required_fields: []

Waline

  1. Create a LeanCloud application and a Vercel project following the Get Started guide.

  2. Copy the “Server URL” of your Vercel project to the corresponding setting in the theme configurations. It is usually something like https://your-domain.vercel.app. In addition, you can refer to the Client Configuration to find out more details and possible values of the optional settings. Here is an example configuration:

    _config.icarus.yml
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    comment:
    type: waline
    server_url: https://your-domain.vercel.app
    path: window.location.pathname
    lang: en-US
    locale:
    placeholder: 'Comment here...'
    emoji:
    - '//unpkg.com/@waline/emojis@1.0.1/weibo'
    dark: auto
    meta: ["nick", "mail", "link"]
    required_meta: []
    login: enable
    word_limit: 0
    page_size: 10
    image_uploader: false
    highlighter: true
    tex_renderer: false
    search: false
    pageview: false
    comment: false
    copyright: true

Something wrong with this article? Click here to submit your revision.