一、语雀下载

1
npm install yuque-hexo --save

二、语雀配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"yuqueConfig": {
"baseUrl": "https://www.yuque.com/api/v2",
"login": "nicaibandishuqing",
"repo": "or0hey",
"postPath": "source/_posts/yuque",
"mdNameFormat": "title",
"adapter": "markdown"
},
"scripts": {
"clean": "hexo clean",
"build": "hexo generate",
"server": "hexo server",
"deploy": "hexo deploy",
"clean:yuque": "yuque-hexo clean",
"publish": "npm run clean && npm run deploy",
"dev": "hexo s",
"sync": "DEBUG=yuque-hexo.* yuque-hexo sync",
"reset": "npm run clean:yuque && npm run sync"

三、测试可见范围

测试语雀仓库由公有转为私有——以保证加密文章在语雀端也是“加密文章”

留言评论区

小伙伴可以登录GitHub账号使用utteranc评论,也可以使用valine评论✨