Blog Writing Optimization

When writing a blog, you will inevitably encounter the situation of inserting pictures. I used to write a draft in a Markdown editor like Boostnote, attach pictures if there are any, and then paste them into the Web side of the book. Of course, the pictures also need to be dragged, it will generate a link to the picture of the book, which is equivalent to using the book as a map bed, and then I will arrange the version of the book to publish to my blog…

Of course it is a very troublesome way, this writing method lasted for more than half a year, began to look for a more efficient way to write blog. First the client, and finally the MWeb. Then it is to solve the troublesome chart bed problem, because MWeb embedded qiuyun picture transmission service, so I applied for qiuyun account, with a period of time feeling really silky smooth.

Chart bed adventures

Until I received this:

The application on Qiuniuyun is only a test domain name service, which is only valid for one month. If you want to continue to use the need to bind their own domain name, and this domain name also need to record.

So I registered this domain name zhangferry.com on Tencent Cloud for two years. When FILLING in the information, I saw that the system reminded me that the domain name should be put on record. In the process of putting on record, I also found that the domain name should be bound to Tencent cloud service to put on record. ?? I just need the domain name, not the cloud service. Vaguely feel like a set, need to solve a set of problems. I also cherish a fluke psychology to see the price of Tencent cloud service, can not afford to use… I was a little alarmed to see that if you don’t register your domain name, it will be recalled after three months. After inquiring the customer service, I learned that the server would be recovered only if it was not registered in China. Because my blog was set up on Github, I could not register it. I was relieved that the domain name was saved. But, do not put on record seven niuyun again do not work, what F…

After struggling for a period of time, I had to give up Qiniuyun and look for other map bed services. Zhihu has a comprehensive summary of the free map bed. Turns out there are a lot of free services out there, and I feel like I’ve found a solution. But, another but, graph bed is a thing, free means unstable, in case one day die, the pictures are lost. At the end of the paper, there is a summary: if you plan to use it for a long time, please choose Youpaiyun or Qiuniuyun first. If you store pictures that are not important, you can use free unlimited size SM.MS map bed.

Combined with my demand for chart bed: free + stable. Sm.ms seems to be the closest solution, although SM.MS is not unknown, BUT I am a little worried about its stability.

After further searching, I found PicGo, a map bed management tool. Following PicGo (V2.0.3), I found Github as a map bed solution. Github, yes, I’ve confirmed that directly. Although some people say that Github images in China will be slower, but it will certainly ensure the stability of data ah. So map bed tools and map bed services are found, Xi Big pu Ben!

Github Map bed configuration

Said a lot of nonsense, finally arrived at this ideal diagram bed configuration stage, relatively simple.

1. Build a warehouse

Used to save images that need to be uploaded. This repository had better be public, because private repository, image link will carry token, and this token has the problem of expiration.

2. Obtain the authorization token

Create a token on Github’s Developer Setting screen. Remember to save, because it’s only going to show once.

3. Configure PicGo

According to the illustration:

4, the use of

It’s easy to use, too. PicGo comes in two ways: After a screenshot is taken, the image appears in PicGo’s to-upload list. If we manually click it, the upload will be triggered. After the upload is successful, the clipboard will have the corresponding picture text in Markdown format, which can be directly pasted for use. To fix pictures, we need to drag the pictures we need to use to the PicGo client and manually upload them. After successful uploading, the pictures will be automatically copied into Markdown text, which can be directly pasted for use.

There you go. Flowers!