Build a personal blog Based on Jekyll (1) _ config. yml

Source: Internet
Author: User
ArticleDirectory
  • The final code:
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:

  1. 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

  2. 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.

  3. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.