抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

前言

以前hexo像是在玩一样,只是随便弄一弄。自从私有云服务器没了,就再没搞过hexo博客.

但是现在发现 material-x 已经变成了 volantis 升级更新的很好,所以这次想放到github page上做永久发布。

知乎 - hexo-butterfly主题-giscus评论系统设置
知乎 - 【hexo】基础教程-四-新增RSS订阅

giscus

增加rss订阅

运行:npm install --save hexo-generator-feed

然后修改文件 _config.yml

1
2
3
4
5
6
7
8
# Extensions
plugins:
hexo-generator-feed
#Feed Atom
feed:
type: atom
path: atom.xml
limit: 20

然后就可以了,npm run build完了之后,就可以用了。

参考: 知乎 - 【hexo】基础教程-四-新增RSS订阅

开启搜索服务

1
2
3
4
5
6
7
8
############################### Search ############################### > start
# To use hexo search, you need to install the following plugins:
# npm i hexo-generator-json-content
search:
enable: true
service: hexo # hexo
js:
############################### Search ############################### > end

根据这个配置来,在 _config.volantis.yml ,先执行命令,再放一下这个配置,就OK了

配置giscus评论系统

_config.volantis.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#############################################################################################
comments:
service: giscus
# giscus
# https://giscus.app
# https://github.com/laymonage/giscus
giscus:
# 以下配置按照 yml 格式增删填写即可
repo: anarckk/giscus
repo-id: R_kgDOJxkH0w
category: Announcements
category-id: DIC_kwDOJxkH084CXU85
mapping: "url"
reactions-enabled: "1"
emit-metadata: "0"
lang: "zh-CN"
# 以上配置按照 yml 格式增删填写即可
theme:
light: "light" # https://gcore.jsdelivr.net/gh/volantis-x/cdn-volantis@master/css/giscus/light.css
dark: "dark" # https://gcore.jsdelivr.net/gh/volantis-x/cdn-volantis@master/css/giscus/dark.css

#############################################################################################

参考:

知乎 - hexo-butterfly主题-giscus评论系统设置

giscus

增加用户配置

参考资料:https://volantis.js.org/v5/advanced-settings/?keyword=author

增加文件 source/_data/author.yml

1
2
3
4
Anarckk:
name: Anarckk
avatar: https://cn.bing.com/th?id=AMMS_fc8f99fd41ebd737a71c4e13806db9a0&w=110&h=110&c=7&rs=1&qlt=80&pcl=f9f9f9&cdv=1&dpr=2&pid=16.1
url:

评论