-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update post meta * Edit README * Edit post meta text settings
- Loading branch information
Showing
6 changed files
with
125 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# 用于 Hexo NexT 的 Artalk 插件 | ||
|
||
> [English](https://github.com/leirock/hexo-next-artalk/blob/main/README.md) | ||
[![NPM version](https://img.shields.io/npm/v/hexo-next-artalk?color=red&logo=npm&style=flat-square)](https://www.npmjs.com/package/hexo-next-artalk) | ||
[![NPM downloads](https://img.shields.io/npm/dm/hexo-next-artalk?color=red&logo=npm&style=flat-square)](https://www.npmjs.com/package/hexo-next-artalk) | ||
[![Theme Version](https://img.shields.io/badge/NexT-v7.3.0+-blue?style=flat-square)](https://github.com/next-theme/hexo-theme-next) | ||
[![Artalk Version](https://img.shields.io/badge/Artalk-v2.3.1+-558fb5?style=flat-square)](https://github.com/ArtalkJS/Artalk) | ||
|
||
这是一款适用于 Hexo NexT 的 [Artalk](https://artalk.js.org) 评论插件。 | ||
|
||
## 安装 | ||
|
||
```bash | ||
npm install hexo-next-artalk | ||
``` | ||
|
||
## 配置 | ||
|
||
将下列配置添加到 Hexo 的根配置文件 `_config.yml` 之中,把 `enable` 设为 `true`,然后将 `artalk` 下的其他配置项修改为您自己的值。 | ||
|
||
```yaml | ||
# Artalk 配置文件 | ||
# 更多信息: https://artalk.js.org | ||
|
||
artalk: | ||
enable: false | ||
|
||
# 后端程序 API 地址,请修改为您自己的 API 地址 | ||
server: https://artalk.example.com | ||
|
||
# 网站名称,请指定后段程序中的一个网站,留空即默认站点 | ||
site: | ||
|
||
# 前端资源 CDN 地址,您可以修改为偏好的其他 CDN 镜像 | ||
## 参考:https://artalk.js.org/guide/frontend/install.html | ||
jsUrl: https://unpkg.com/artalk@2/dist/Artalk.js | ||
cssUrl: https://unpkg.com/artalk@2/dist/Artalk.css | ||
|
||
# 文章阅读数统计 | ||
pvCount: true | ||
|
||
# 评论数统计 | ||
commentCount: true | ||
|
||
# 黑暗模式 | ||
darkMode: auto | ||
|
||
# 在后端控制前端 | ||
## 参考:https://artalk.js.org/guide/backend/fe-control.html | ||
useBackendConf: false | ||
``` | ||
## 贴士 | ||
在文章信息栏中,评论数的默认显示文字是“Artalk”。如果您希望修改此处,例如,改为简体中文的“评论数”: | ||
1. 在 Hexo 博客文件夹下创建文件 `/source/_data/languages.yml`; | ||
2. 编辑该文件如下并保存。 | ||
|
||
```yaml | ||
zh-CN: | ||
post: | ||
comments: | ||
artalk: 评论数 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters