Skip to content

leirock/hexo-next-artalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Artalk for Hexo NexT

中文

NPM version NPM downloads Theme Version Artalk Version

This is an Artalk comment plugin for Hexo NexT.

Install

npm install hexo-next-artalk

Configure

Add the following configurations in Hexo's root config file _config.yml, set enable to true, and edit other configurations in artalk section as your own values.

# Artalk Config File
## For more information: https://artalk.js.org

artalk:
  enable: false

  # Backend server API, you should set this to your own server API
  server: https://artalk.example.com

  # Site name, you can set this to specify site for server
  # or leave blank to use default site
  site:

  # Frontend resources CDN, you can set this to your preferred CDN
  ## Reference: https://artalk.js.org/guide/frontend/install.html
  jsUrl: https://artalk.example.com/dist/Artalk.js
  cssUrl: https://artalk.example.com/dist/Artalk.css

  # Page views count
  pvCount: true

  # Comments count
  commentCount: true

  # Dark mode
  darkMode: auto

  # Use backend to config
  ## Reference: https://artalk.js.org/guide/backend/fe-control.html
  useBackendConf: true

Tips

The default text of comments count in post meta is "Artalk". If you would like to change it, for example, to simplified Chinese "评论数":

  1. Create a file /source/_data/languages.yml in your Hexo blog folder;
  2. Edit this file as follows and then save it.
zh-CN:
  post:
    comments:
      artalk: 评论数