0. 主题推荐
https://github.com/liangjingkanji/DrakeTyporaTheme
1. 安装nodejs
下载 | Node.js 中文网 (nodejs.cn)
安装完需要重启一下电脑,否则可能会显示没有NPM
2.typora里安装picgo-core(command line)
这个安装的速度可能有点慢,因人而异
3.此时点击验证图片上传,查看报错地址
cd C:\Users\jaymie\AppData\Roaming\Typora\picgo\win64#进入./picgo目录下载插件
.\picgo.exe install gitee-uploader
.\picgo.exe install smms-user#此条可尝试不写
4.创建gitee仓库
按照如上勾选创建仓库
依次点击“个人头像-设置-私人令牌”
如下勾选后生成令牌
5.修改配置文件
{
"picBed": {
"current": "gitee",
"uploader": "gitee",
"gitee": {
"branch": "master",
"customPath": "yearMonth",
"customUrl": "",
"path": "",
"repo": "用户名/仓库名",
"token": "私人令牌"
},
"transformer": "path"
},
"picgoPlugins": {
"picgo-plugin-gitee-uploader": true,
"picgo-plugin-github-plus": true
},
"picgo-plugin-gitee-uploader": {
"lastSync": "2020-04-30 01:41:13"
},
"picgo-plugin-github-plus": {
"lastSync": "2020-04-07 11:09:08"
}
}
用户名/仓库名可以在网址中找到