-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config.yml
201 lines (180 loc) · 8.19 KB
/
_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# This is the default format.
# For more see: http://jekyllrb.com/docs/permalinks/
# permalink: /:categories/:year/:month/:day/:title
exclude: [".rvmrc", ".rbenv-version", "README.md", "Rakefile", "changelog.md"]
# highlighter: pygments
# Themes are encouraged to use these universal variables
# so be sure to set them if your theme uses them.
#
gems: [jekyll-paginate]
paginate : 3
title : kaspterio
tagline : code as a hacker
version : 1.0
desc : power by <a href="">jekyll</a>/<a href="">duoshuo</a>/<a href="">github</a>
github :
repo : https://github.com/kapsterio/kapsterio.github.io.git
author :
name : 章恒
email : [email protected]
github : kapsterio
desc : Hi~ I am a software engineer from Meituan. Now, the most commonly used programming language in my work is PHP and Java, and I'm also familiar with C and Python. By the way, I'm pretty fascinated with UNIX system, and I love to write small utils and scripts on that.
# The production_url is only used when full-domain names are needed
# such as sitemap.txt
# Most places will/should use BASE_PATH to make the urls
#
# If you have set a CNAME (pages.github.com) set your custom domain here.
# Else if you are pushing to username.github.io, replace with your username.
# Finally if you are pushing to a GitHub project page, include the project name at the end.
#
production_url : http://kapsterio.github.io
# All Jekyll-Bootstrap specific configurations are namespaced into this hash
#
JB :
version : 0.3.0
# All links will be namespaced by BASE_PATH if defined.
# Links in your website should always be prefixed with {{BASE_PATH}}
# however this value will be dynamically changed depending on your deployment situation.
#
# CNAME (http://yourcustomdomain.com)
# DO NOT SET BASE_PATH
# (urls will be prefixed with "/" and work relatively)
#
# GitHub Pages (http://username.github.io)
# DO NOT SET BASE_PATH
# (urls will be prefixed with "/" and work relatively)
#
# GitHub Project Pages (http://username.github.io/project-name)
#
# A GitHub Project site exists in the `gh-pages` branch of one of your repositories.
# REQUIRED! Set BASE_PATH to: http://username.github.io/project-name
#
# CAUTION:
# - When in Localhost, your site will run from root "/" regardless of BASE_PATH
# - Only the following values are falsy: ["", null, false]
# - When setting BASE_PATH it must be a valid url.
# This means always setting the protocol (http|https) or prefixing with "/"
BASE_PATH : false
# By default, the asset_path is automatically defined relative to BASE_PATH plus the enabled theme.
# ex: [BASE_PATH]/assets/themes/[THEME-NAME]
#
# Override this by defining an absolute path to assets here.
# ex:
# http://s3.amazonaws.com/yoursite/themes/watermelon
# /assets
#
ASSET_PATH : false
# These paths are to the main pages Jekyll-Bootstrap ships with.
# Some JB helpers refer to these paths; change them here if needed.
#
archive_path: /archive.html
categories_path : /categories.html
tags_path : /tags.html
atom_path : /atom.xml
rss_path : /rss.xml
# Settings for comments helper
# Set 'provider' to the comment provider you want to use.
# Set 'provider' to false to turn commenting off globally.
#
comments :
provider : duoshuo
disqus :
short_name : jekyllbootstrap
livefyre :
site_id : 123
intensedebate :
account : 123abc
facebook :
appid : 123
num_posts: 5
width: 580
colorscheme: light
duoshuo :
short_name : kapsterio
# Settings for analytics helper
# Set 'provider' to the analytics provider you want to use.
# Set 'provider' to false to turn analytics off globally.
#
#analytics :
# provider : google
# gauges :
# site_id : 'SITE ID'
# google :
# tracking_id : 'UA-123-12'
# getclicky :
# site_id :
# mixpanel :
# token : '_MIXPANEL_TOKEN_'
# piwik :
# baseURL : 'myserver.tld/piwik' # Piwik installation address (without protocol)
# idsite : '1' # the id of the site on Piwik
# Settings for sharing helper.
# Sharing is for things like tweet, plusone, like, reddit buttons etc.
# Set 'provider' to the sharing provider you want to use.
# Set 'provider' to false to turn sharing off globally.
#
sharing :
provider : duoshuo
# Settings for all other include helpers can be defined by creating
# a hash with key named for the given helper. ex:
#
# pages_list :
# provider : "custom"
#
# Setting any helper's provider to 'custom' will bypass the helper code
# and include your custom code. Your custom file must be defined at:
# ./_includes/custom/[HELPER]
# where [HELPER] is the name of the helper you are overriding.
###############################################################################
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely need to edit after that.
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'jekyll serve'. If you change this file, please restart the server process.
# Build settings
markdown: kramdown
#you can override those settings in a post or page file.
#All you need to do is specify the settings in the post or page front matter.
#scope是路径,用来匹配生效的文件
#values是变量和其值
#变量是什么,变量是jekyll解析每个文本文件时用到的,一般定义在每个文本文件的front matter块中
#当然有很多变量对所有的文本文件都是通用的,比如author,layout等,在每个文件中定义显然很费事
#因此,jekyll支持在_config.yml中写个defaults配置,做到匹配一类文件,为其定义一些变量
#有哪些变量可以定义呢?分为两类,一种是jekyll预定义的变量,另一种是自定义变量
#对于预定义变量,用户只管赋值就行,系统根据值来决定生成的结果,比如layout,如果为某个内容文件指定了layout
#那么,解析这个文件时就会去找去_layout目录找到{layoutname}.html,把{{content}}替换为内容文件的内容
#layout文件也可以指定layout,也就是说layout还可以嵌套,解析layout文件时也会去找其指定的layout
#对于自定义变量,在front matter中定义后,如果要使用,则需要用{{page.XXX}}来引用
####layout
#If set, this specifies the layout file to use. Use the layout file name without the file extension. Layout files must be placed in the _layouts directory.
####permalink
#If you need your processed blog post URLs to be something other than the site-wide style (default /year/month/day/title.html), then you can set this variable and it will be used as the final URL.
####published
#Set to false if you don’t want a specific post to show up when the site is generated.
####category
####categories
#Instead of placing posts inside of folders, you can specify one or more categories that the post belongs to. When the site is generated the post will act as though it had been set with these categories normally. Categories (plural key) can be specified as a YAML list or a comma-separated string.
####tags
#Similar to categories, one or multiple tags can be added to a post. Also like categories, tags can be specified as a YAML list or a comma-separated string.
#####date 对于每个post而言,date也是预定变量,作用是保证能够正确的排序 有如下的格式
#YYYY-MM-DD HH:MM:SS +/-TTTT
#除了上述的jekyll预定义的变量,可以自定义变量,比如可以在某个md的front matter中定义title、author..
defaults:
-
scope:
path: "" #the path is set as an empty string, it will apply to all files in your project
type: "posts" #The different types that are available to you are pages, posts, drafts or any collection in your site.
values:
layout: "post" #预定义的变量
author: "johnny kapster" #自定义的变量
#published: false ###
category: "test"
-
scope:
path: "projects"
type: "pages" # previously `page` in Jekyll 2.2.
values:
layout: "project" # overrides previous default layout
author: "Mr. Hyde"
theme: jekyll-theme-slate