图床搭建
-
在github上创建一个空的public仓库并初始化
-
生成token
【进入github】-【点击头像】-【settings】-【developer settings】-【Personal access tokens】 -
点击【Generate new token】
自定义一个名字,然后勾选【repo】最后点绿色按钮创建即可
个人访问令牌创建成功,请复制你的token,它只显示一次,请妥善保管
https://blog.csdn.net/qq_41684621/article/details/103596358
Typora使用图床
文件–>偏好设置–>图像
配置文件
修改:customUrl、path、repo、token
{
"picBed": {
"current": "github",
"uploader": "github",
"smms": {
"token": ""
},
"github": {
"branch": "main",
"customUrl": "https://cdn.jsdelivr.net/gh/xixi-sq/images@main",
"customPath": "yearMonth",
"path": "images/kylin/",
"repo": "xixi-sq/images",
"token": "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"
}
},
"picgoPlugins": {
"picgo-plugin-gitee-uploader": true
},
"picgo-plugin-gitee-uploader": {
"lastSync": "2021-07-22 10:15:23"
}
}
“lastSync”: “2021-07-22 10:15:23”
}
}