-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_config.yml
360 lines (332 loc) · 8.82 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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Tifa's Blog
subtitle: Computer & Math
description: A blog about CP & math
keywords: competitive programming, math
author: Tifa
language: zh-CN
timezone: UTC
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://tifa-233.com
root: /
# permalink: :year/:month/:day/:title/
permalink: archives/:title/
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: code
i18n_dir: :lang
skip_render:
# 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
field: site # Apply to the whole site
exclude: ""
filename_case: 0
render_drafts: false
post_asset_folder: true
relative_link: false
future: true
highlight:
enable: true
auto_detect: false
line_number: true
tab_replace: " "
exclude_languages:
- mermaid
- ignore
- graphviz
wrap: true
hljs: false
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ""
exclude_languages:
- mermaid
- ignore
- graphviz
# 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: ""
per_page: 10
order_by: -date
pagination_dir: page
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true
# 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
## updated_option supports 'mtime', 'date', 'empty'
updated_option: "mtime"
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
ignore:
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: ""
sidebar:
# left | right (only for Pisces | Gemini).
position: left
social:
# GitHub: https://github.com/Tiphereth-A || github
social_icons:
enable: false
icons_only: false
b2t: true
scrollpercent: true
auto_excerpt:
enable: true
length: 50
read_more_btn: true
codeblock:
border_radius:
copy_button:
enable: true
show_result: true
# Extensions
search:
path: search.xml
field: post
content: true
format: html
limit: 10000
sitemap:
path:
- sitemap.xml
- sitemap.txt
template: ./source/_data/sitemap_template.xml
template_txt: ./source/_data/sitemap_template.txt
rel: false
tags: true
categories: true
feed:
type: atom
path: atom.xml
limit: 20
hub:
content:
content_limit: 140
content_limit_delim: " "
order_by: -date
icon: icon.png
autodiscovery: true
template:
pandoc:
pandoc_path: pandoc
# https://github.com/dimaslanjaka/hexo-seo
seo:
# minify html
html:
enable: true
# fix invalid html
fix: true
# exclude from minify
exclude:
- "*.min.{htm,html}"
# minify css
css:
enable: true
# If you want to customize the css minifier settings, you can put below
# exclude css from minifying, multiple supported
exclude:
- "**/*.min.css"
# minify js
js:
enable: true
# concatenate all js into one tag
## WARNING: DO NOT USING ANOTHER MINIFIER PLUGIN
concat: false
# If you want to customize the js minifier settings, you can put below
# exclude css from minifying, multiple supported
exclude:
- "**/*.min.js"
# this is terser options, you can customize minifier with terser options https://github.com/terser/terser
# below is config example
options:
compress:
dead_code: true
mangle:
toplevel: true
safari10: true
# add rich snippets on every posts and pages
schema:
article:
enable: true
breadcrumb:
enable: true
sitelink:
enable: true
searchUrl: https://tifa-233.com/search?q={search_term_string}
# this function still under development because JAVASCRIPT HEAP MEMORY and my device is 8GB RAM
img:
enable: true
# fix broken images
broken: false
# default broken images
default: https://upload.wikimedia.org/wikipedia/commons/6/65/No-Image-Placeholder.svg
# broken images methods
# serverside : process broken images from server side (caused javascript heap out of memory, if your post large and your device has insufficient memory)
# clientside : process broken image from client side browser with webjs
onerror: serverside
# external links fix
links:
# enable or false
enable: true
# allowed following links, otherwise nofollow others
exclude:
- tifa-233.com
# auto generate seo friendly sitemap on http://yoursite.com/sitemap.xml
# forked from yoast seo
sitemap: true
nofollow:
enable: true
field: site
exclude:
# DOC: https://www.u2sb.top/docs/hexo-tag-mmedia
mmedia:
aplayer:
cdn: https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js
style_cdn: https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css
default:
meting:
cdn: https://cdn.jsdelivr.net/npm/meting/dist/Meting.min.js
api:
default:
dplayer:
cdn: https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.js
style_cdn: https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.css
hls_cdn: https://cdn.jsdelivr.net/npm/hls.j/dist/hls.min.js
dash_cdn: https://cdn.jsdelivr.net/npm/dashjs/dist/dash.all.min.js
shaka_dash_cdn: https://cdn.jsdelivr.net/npm/shaka-player/dist/shaka-player.compiled.js
flv_cdn: https://cdn.jsdelivr.net/npm/flv.js/dist/flv.min.js
webtorrent_cdn: https://cdn.jsdelivr.net/npm/webtorrent/webtorrent.min.js
default:
icodeweb:
lang_default: plaintext
types:
- name: cpa
lang_default:
website: https://raw.githubusercontent.com
prefix:
- Tiphereth-A
- CP-archives
- master
- src
suffix:
codehead: |
---
Author: Tifa
Description: From <https://github.com/Tiphereth-A/CP-archives>
!!! ATTENEION: All the context below is licensed under a
GNU Affero General Public License, Version 3.
See <https://www.gnu.org/licenses/agpl-3.0.txt>.
---
- name: cpa_nohead
lang_default:
website: https://raw.githubusercontent.com
prefix:
- Tiphereth-A
- CP-archives
- master
- src
suffix:
codehead:
- name: cpa_cpp
lang_default: cpp
website: https://raw.githubusercontent.com
prefix:
- Tiphereth-A
- CP-archives
- master
- src
suffix:
codehead: |
/*
* @Author: Tifa
* @Description: From <https://github.com/Tiphereth-A/CP-archives>
* !!! ATTENEION: All the context below is licensed under a
* GNU Affero General Public License, Version 3.
* See <https://www.gnu.org/licenses/agpl-3.0.txt>.
*/
- name: cpa_py
lang_default: python
website: https://raw.githubusercontent.com
prefix:
- Tiphereth-A
- CP-archives
- master
- src
suffix:
codehead: |
"""
@Author: Tifa
@Description: From <https://github.com/Tiphereth-A/CP-archives>
!!! ATTENEION: All the context below is licensed under a
GNU Affero General Public License, Version 3.
See <https://www.gnu.org/licenses/agpl-3.0.txt>.
"""
- name: cpw_cpp
lang_default: cpp
website: https://raw.githubusercontent.com
prefix:
- Tiphereth-A
- CP-workspace
- main
suffix:
codehead: |
/*
* @Author: Tifa
* @Description: From <https://github.com/Tiphereth-A/CP-workspace>
* !!! ATTENEION: All the context below is licensed under a
* GNU General Public License, Version 3.
* See <https://www.gnu.org/licenses/gpl-3.0.txt>.
*/
- name: blog
lang_default:
website: https://raw.githubusercontent.com
prefix:
- Tiphereth-A
- Tiphereth-A.github.io
- master
- source
- code
suffix:
codehead: