Sidebar

x

Using prose.io 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 prose.io 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 prose.io
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.io
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 prose.io
Without prose.io, online editing directly on github is also possible, prose.io provides a slightly better editing environment, so you can try it.

Prose.io is generally not configured, not configured, you can directly access http://prose.io, the authorization will do.

If you want to configure, basically add some prose.io 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 Prose.io
Prose.io'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 prose.io is not in the format xxxx-xx-xx-yyy-zzz.md, 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 2014-03-27-.md, 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 prose.io 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.

Prose.io 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
 

Comments

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