Using to write your github pages

Writing a blog is a very casual behavior. Usually people don't have a high demand for writing, so from WordPress to light blog to Weibo, writing is getting lighter and easier.

But maintaining a blog is not easy.

For someone like me, a blog system that can be maintained needs

Store in a simple data format
When you want to find an article in a blog, you don't need to rummaging through the cabinet to solve the back-end database. Come on, shouldn't the blog be a txt file? Why can't Grep do it?

### ‚ÄčHave an immersive writing tool
This is very important. When you write something, you always need to have no interference. Don't stop on the left and right sides, there are things like "Q-X short skirt hot 9 yuan" flying around.

Can draft drafts, can version control.
People are so lazy, think about it and write a little, but if there is a tool to motivate, things may be different.

So github pages are a seemingly ideal choice: storage is a text file, plus a little simple Markdown; version control with git, no better.

But github pages lack a simple authoring tool. In other words, there is no simple tool that can be used on the Web. Clone to the local, use the jekyll server and add vim, it seems too heavy, suitable for doing some more creative things, not suitable for casual writing.

So made up for this vacancy and provided a good online github pages editing tool, the problem was solved.

### How to get one
Basically, it consists of two steps

### Get a github pages set up by jekyll
Set up github pages
How to set up github pages, then configure jekyll, there are many tutorials, such as this, and this, and I refer to this.

It seems very simple, in fact, it is often not so good, you know.

Old wet, can you give more strength? How about copy paste?

This requirement is not unsatisfactory. If there is no requirement for personalization, there is a scheme of 123 here.

I prepared a template and fork it
First of all, you must have a github account. No, it doesn't matter, you will be prompted to create it.

Go to the github interface and change the name of the repo to
Github modifies the repo name by clicking on the setting on the repo page. The first tab is there. Here is a picture of the truth.

Modify some information under the myblog group in _config.yml under the repo root directory.
Key Description
Gavatar The md5 value of your email address, used to display the gavatar avatar in the template. Give an online calculation tool, pay attention to all lowercase
Gpname github account name
Linkedin linkedin link
Github github link
The background image array on the right side of the coverimgs index page, replace the http part, leave no one []
Background image url of postbgimg blog post page
If you are not very particular, this is done. (Of course, beautifying this kind of thing is eternal, I know, I will change it later)

### Set
Without, online editing directly on github is also possible, provides a slightly better editing environment, so you can try it. is generally not configured, not configured, you can directly access, the authorization will do.

If you want to configure, basically add some configuration in _config.yml, basically you can refer to here.

If it is from the template fork I gave, then there is no need to modify it, it has been configured.

### Precautions for using's markdown does not display jekyll metadata by default. You need to click the corresponding button on the right to display and edit.

After configuring jekyll, the default title of is not in the format, but as the real title. In English, the file name that commits to github will be used to split the word and combine it to form a file name. For example, hello world will eventually be combined into 2014-03-27-hello-world. In the case of using Chinese, this mechanism is not very good. So if you want to avoid generating some names like, first write in the title with the English keyword, commit, and then modify it to Chinese. This will do.

If you use the configuration in my template, the article in is unpublished by default, so you can finish it slowly and say that when you want to publish, click the toolbar to be published, and then commit will be generated automatically. currently supports inserting images, which are automatically uploaded to github (configured in _config.yml). But the file name is too embarrassing, such as very yellow and very violent, many Martian, Chinese with Chinese characteristics, will lead to a variety of problems. Therefore, for the sake of world peace, before you drag in, you should change your name to the individual.

top 5 Free Open Source Web Hosting Control Panels
Go to the concurrent example - Pool


No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Sunday, 16 December 2018