ArticleDirectory
Preface
Before reading this article, you need to know a little about git. But not the most important.
What is _ config. yml
_ Config. yml is the configuration file of Jekyll. Details include: (... A lot is omitted here ..). The reason why this is not listed one by one is that there is no need to say so much, because you cannot use these configurations at the beginning.
We need to understand the following three items:
- Permalink: Specifies the URL of your blog. The default value is date.
Generally, the configuration is as follows:/: year/: Month/: Day/: title.
It means that the URL displayed on your blog should be like this: http://yansong.me/2012/09/15/test-blog.html
- Auto: Indicates whether a file is updated. The default value is false.
In general, especially at the beginning, we need to set auto as we update it frequently.
- Markdown: it refers to the template you use to write your blog. The default value is maruku.
Like other people, I use rdiscount. Why? I think there is a problem because maruku is not very flexible, especially adding HTML tags to it.
Last Code:
Permalink:/: year/: Month/: Day/: title # regenerate the Site Auto: truemarkdown: rdiscount when modifying the file
Postscript
In fact, it does not matter if you do not do any configuration .;)
However, in any case, it is necessary to configure auto.
Here is the first step: Create the _ config. yml file.