Jekyll-default-settings

Jekyll的默认配置

Jekyll的默认配置规则

为了加深对Jekyll指令的了解,从官网上查找了 _config.yml 文件的默认配置$^{[1]}$,如下所示:

 1# Where things are
 2source:       .
 3destination:  ./_site
 4plugins_dir:  ./_plugins
 5layouts_dir:  ./_layouts
 6data_dir:     ./_data
 7includes_dir: ./_includes
 8collections:  null
 9
10# Handling Reading
11safe:         false
12include:      [".htaccess"]
13exclude:      []
14keep_files:   [".git", ".svn"]
15encoding:     "utf-8"
16markdown_ext: "markdown,mkdown,mkdn,mkd,md"
17
18# Filtering Content
19show_drafts: null
20limit_posts: 0
21future:      false
22unpublished: false
23
24# Plugins
25whitelist: []
26gems:      []
27
28# Conversion
29markdown:    kramdown
30highlighter: rouge
31lsi:         false
32excerpt_separator: "\n\n"
33incremental: false
34
35# Serving
36detach:  false
37port:    4000
38host:    127.0.0.1
39baseurl: "" # does not include hostname
40
41# Outputting
42permalink:     date
43paginate_path: /page:num
44timezone:      null
45
46quiet:    false
47defaults: []
48
49# Markdown Processors
50rdiscount:
51  extensions: []
52
53redcarpet:
54  extensions: []
55
56kramdown:
57  auto_ids:       true
58  footnote_nr:    1
59  entity_output:  as_char
60  toc_levels:     1..6
61  smart_quotes:   lsquo,rsquo,ldquo,rdquo
62  enable_coderay: false
63
64  coderay:
65    coderay_wrap:              div
66    coderay_line_numbers:      inline
67    coderay_line_number_start: 1
68    coderay_tab_width:         4
69    coderay_bold_every:        10
70    coderay_css:               style
71
72  redcloth:
73    hard_breaks: true

参考文献

[1] http://jekyll.com.cn/docs/configuration/