-
Notifications
You must be signed in to change notification settings - Fork 1
/
_config.yml
232 lines (208 loc) · 6.33 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Unlimited Code Works
subtitle: A pessimist because of intelligence, but an optimist because of will.
description:
author: Peifeng Yu
timezone: America/Los_Angeles
language:
- en
- zh-CN
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://unlimited-code.works
root: /
permalink: blog/:year/:month/:day/:title/
# Directory
source_dir: source
tag_dir: tags
archive_dir: archives
category_dir: categories
i18n_dir:
skip_render:
- assets/theme/**
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
filename_case: 1
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: '/blog'
per_page: 10
order_by: -date
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Tag pages
tag_generator:
per_page: 10
enable_index_page: false
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: 'page'
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
# Markdown rendering
## Markdown-it config
## dependency: hexo-renderer-markdown-it, markdown-it-texmath
## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki
markdown:
render:
html: true
xhtmlOut: true
breaks: false
linkify: true
typographer: true
quotes: '“”‘’'
plugins:
- markdown-it-abbr
- markdown-it-footnote
- markdown-it-ins
- markdown-it-sub
- markdown-it-sup
- name: "markdown-it-texmath"
options:
katexOptions:
trust: true
anchors:
level: 2
permalink: true
permalinkClass: header-anchor
permalinkSide: 'right'
permalinkSymbol: ""
# 0: unchanged, 1: lower case, 2: upper case
case: 1
separator: '-'
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
# Use the theme-next theme
theme: next
# Feed
## dependency: hexo-generator-feed
feed:
type: atom
path: atom.xml
limit: 0
hub:
content: true
# Search
## dependency: hexo-generator-searchdb
search:
path: search.xml
field: post
format: raw
limit: 10000
# have multiple sizes for images
## dependency: hexo-filter-responsive-images
responsive_images:
pattern: '**/*.+(gif|png|jpg|jpeg)'
sizes:
body:
fit: inside
width: 700
thumb:
fit: inside
width: 300
huge:
width: 2000
height: 1500
fit: inside
withoutEnlargement: false
# Code highlighting
## see also additional theme config: codeblock
## disable builtin one
highlight:
enable: false
prismjs:
enable: false
## dependency: hexo-prism-plus
code_dir: assets/code
prism_plus:
enable: true
plugins:
- normalize-whitespace
- line-numbers
- line-highlight
- command-line
- toolbar
- copy-to-clipboard
- show-language
# Default language if not specified inline in code blocks
default_lang: clike
# Default preset if no preset is specified inline
# All available presets
presets:
default:
lineno: true
styles:
max-height: 30em
prismjs-copy-timeout: 500
shell:
lineno: false
classes: [ command-line ]
user: aetf
prismjs-copy-timeout: 500
styles:
max-height: 30em
# Auto excerpt
## dependency: hexo-excerpt
excerpt:
depth: 5
excerpt_excludes:
- .header-anchor
- .note.info
# URL redirection to help search engine indexing
## dependency: hexo-generator-alias
alias:
blog/1970/11/18/a-really-complex-markdown-test/index.html: blog/1970/11/18/complex-md-test/index.html
blog/2016/05/13/gsoc-communicating-with-lldb/index.html: blog/2016/05/17/gsoc-communicating-with-lldb/index.html
blog/2016/05/14/gsoc-communicating-with-lldb/index.html: blog/2016/05/17/gsoc-communicating-with-lldb/index.html
blog/2016/08/21/gsoc-kdevelop-lldb-final-report/index.html: blog/2016/08/20/gsoc-kdevelop-lldb-final-report/index.html
blog/2016/06/27/gsoc-mid-term-evaluation/index.html: blog/2016/06/29/gsoc-midterm-evaluation/index.html
blog/2016/06/28/gsoc-mid-term-evaluation/index.html: blog/2016/06/29/gsoc-midterm-evaluation/index.html
blog/2016/06/10/build-kdevelop-against-custom-kdevplatform/index.html: blog/2016/08/03/build-kdevelop-against-custom-kdevplatform/index.html
blog/2016/04/23/gsoc-kdevelop-lldb-support/index.html: blog/2016/04/22/gsoc-kdevelop-lldb-support/index.html
blog/2013/02/05/usaco-241-the-tamworth-two/index.html: blog/2013/02/05/usaco-2-4-1/index.html
blog/2013/02/16/usaco-314-shaping-regions/index.html: blog/2013/02/16/usaco-3-1-4/index.html
blog/2013/02/05/usaco-231-longest-prefix/index.html: blog/2013/02/05/usaco-2-3-1/index.html
blog/2013/02/15/usaco-242-overfencing/index.html: blog/2013/02/15/usaco-2-4-2/index.html
blog/2013/02/05/usaco-235-controlling-companies/index.html: blog/2013/02/05/usaco-2-3-5/index.html
blog/2013/02/07/hdu-3234-exclusive-or/index.html: blog/2013/02/07/hdu-3234/index.html
blog/2013/12/23/njupt-1362-qi-che-jia-you-xing-shi-wen-ti/index.html: blog/2013/12/23/njupt-1362/index.html
# Publication list settings
## dependency: hexo-next-publist
publist:
strict: true
# Minify CSS using clean-css
## dependency: hexo-clean-css
clean_css:
level: 2
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: rsync
host: archvps.hosts.unlimited-code.works
user: aetf
root: /mnt/storage/webroot/blog
port: 59901
delete: true
verbose: true