forked from winxuan/winxuan.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05e5763
commit 03bbbdc
Showing
3 changed files
with
372 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
|
||
title: 奇怪的知识又增加了 | ||
date: 2024-09-16 11:00:00 +0800 | ||
categories: [Mixed Knowledge] | ||
tags: [Mixed Knowledge] | ||
|
||
--- | ||
|
||
## Typora配置 | ||
|
||
最主要的就是配置typora图床,我在网上看了很多免费的图床,但是感觉懒得搞了,不如自己的github仓库来的方便(就是访问的时候得挂代理这一点麻烦点),但是无所谓了,总感觉自己的才是最好的。 | ||
|
||
首先就是把图像保存的设置搞一下,这样每次在typora中插入图片就会自动上传到GitHub仓库并更换图片路径; | ||
|
||
 | ||
|
||
当然如图我们使用了`pig-go`这个技术,因此我们还需要进行相应的配置才行,我个人的配置文件如下: | ||
|
||
```json | ||
{ | ||
"picBed": { | ||
"github": { | ||
"repo": "mikeaaaaaa/cloudimg", | ||
"token": "自己在github中生成", | ||
"path": "img/", | ||
"customUrl": "", | ||
"branch": "main" | ||
}, | ||
"current": "github", | ||
"uploader": "github" | ||
}, | ||
"picgoPlugins": { | ||
"picgo-plugin-super-prefix": true | ||
}, | ||
"picgo-plugin-super-prefix": { | ||
"prefixFormat": "YYYY/MM/DD/", | ||
"fileFormat": "YYYYMMDD-HHmmss" | ||
} | ||
} | ||
|
||
``` | ||
|
||
看到我还学着网上使用了一个插件,这个插件需要使用nodejs的npm进行安装 `npm install picgo-plugin-super-prefix`; | ||
|
||
当然还有最后一件事情,每次图片上传都会进行一次图片暂存,过一段时间我们最好将图片手动删除掉,路径如下: | ||
|
||
> `C:\Users\xxx\AppData\Roaming\Typora\typora-user-images` | ||
Oops, something went wrong.