1、环境:请参考gitee+Typora图片上传的:https://www.cnblogs.com/zjazn/p/14345006.html
2、配置文件:修改为
{ "picBed": { "uploader": "githubPlus", "current": "githubPlus", "githubPlus": { "branch": "master", // 仓库分支 "customUrl": "https://cdn.jsdelivr.net/gh/XXX/XXX@master", //加速链接填充:用户名/仓库名
"origin": "github", // 存放在哪个平台上 "repo": "XXX/XXX", //用户名/仓库名 //"path": "img/", //用重命名插件代替 picgo-plugin-rename-file "token": "XXXX" //Github私人令牌 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
} }, "picgoPlugins": { "picgo-plugin-github-plus": true // 启用github-plus插件 , "picgo-plugin-gitee-uploader": true, "picgo-plugin-smms-user": true, "picgo-plugin-rename-file": true }, "picgo-plugin-github-plus": { "lastSync": "2021-05-10 12:41:05" }, "picgo-plugin-rename-file": { "format": "{y}/{m}/{d}/{y}{m}{d}{h}{i}{s}{ms}" } }
配置补充指南:
"repo": "XXX/XXX",
创建仓库:

"token": "XXXXXXXXXXXXXX",
END
——————————————————————————————————————————
图片上传重命名学习自:https://www.cnblogs.com/xiaowj/p/13934555.html
重命名插件(可查看format):https://github.com/liuwave/picgo-plugin-rename-file