This repository has been archived by the owner on Jul 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
_config.yml
245 lines (224 loc) · 7.59 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
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: 时过境迁Wayne博客
subtitle: ""
description: "时过境迁Wayne的个人博客"
keywords: "WR博客,时过境迁Wayne博客,时过境迁Wayne的博客,WR的博客,魏然的博客,Wayne的博客"
author: 时过境迁Wayne
language: zh-CN
timezone: "Asia/Shanghai"
# 网址
# 如果您的网站位于子目录中,则将url设置为“ http://yoursite.com/child”,将根目录设置为“ /child /”
url: https://wr0926.ml
root: /
# permalink: :year/:month/:day/:title/
permalink: p/:abbrlink/ # 此处可以自己设置,也可以直接使用 :/abbrlink ,建议前面带目录,不然太乱
abbrlink:
alg: crc32 #算法: crc16(default) and crc32
rep: hex #进制: dec(default) and hex
permalink_defaults:
pretty_urls:
trailing_index: true # 设置为false可从永久链接中删除结尾的“ index.html”
trailing_html: true # 设置为false可从永久链接中删除结尾的“ .html”
# 目录
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
- letbaidu\**
- kernel.html
# 写作
new_post_name: :title.md # 新帖子的文件名
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
enable: true # 在新标签页中打开外部链接
field: site # Apply to the whole site
exclude: ""
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace: ""
wrap: true
hljs: false
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ""
# 主页设置
# path:您的博客索引页面的根路径。(默认 = '')
# per_page:每页显示的帖子。 (0 = 禁用分页)
# order_by:发布订单。 (默认按日期顺序降序)
index_generator:
path: ""
per_page: 10
order_by: -date
# 分类和标签
default_category: uncategorized
category_map:
tag_map:
# 元数据元素
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true
# 日期/时间格式
## Hexo使用Moment.js解析和显示日期
## 您可以按照定义自定义日期格式
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
## updated_option 支持 'mtime', 'date', 'empty'
updated_option: "mtime"
# 分页
## 将per_page设置为0以禁用分页
per_page: 10
pagination_dir: page
# 包含/排除文件
## include:/exclude: 选项仅适用于 'source/' 夹
include:
exclude:
ignore:
# 扩展名
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: butterfly
plugins: hexo-generator-feed
# 部署方式
## Docs: https://hexo.io/docs/deployment.html
# deploy:
# - type: git
# # repo: git@github.com:wayne0926/wrblog.github.io.git
# repo:
# # github: https://github.com/wayne0926/wayne0926.github.io.git
# coding: https://e.coding.net/wr0926/blog/blog.git
# gitee: https://gitee.com/wayne0926/wayne0926.git
# branch: master
# - type: baidu_url_submitter
# - type: cjh_google_url_submitter
# - type: cjh_bing_url_submitter
# - type: cjh_baidu_url_submitter
# # branch: [branch]
# # message: [message]''
# # backup:
# # type: git
# # repo: git@github.com:wayne0926/wrblog.github.io.git,backup
# # # github: https://github.com/wayne0926/wrblog.github.io,backup
# # # coding: https://e.coding.net/wr0926/blog/blog.git,backup
baidu_url_submit:
count: 3 ## 比如3,代表提交最新的三个链接
host: www.wr0926.ml ## 在百度站长平台中注册的域名
token: mNvdE6LuwvryhaeS ## 请注意这是您的秘钥, 请不要发布在公众仓库里!
path: baidu_urls.txt ## 文本文档的地址, 新链接会保存在此文本文档里
#Feed Atom(RSS订阅)
feed:
type: atom
path: atom.xml
limit: 20
## URL提交
hexo_submit_urls_to_search_engine:
submit_condition: count #链接被提交的条件,可选值:count | period 现仅支持count
count: 3 # 提交最新的10个链接
period: 900 # 提交修改时间在 900 秒内的链接
google: 0 # 是否向Google提交,可选值:1 | 0(0:否;1:是)
bing: 1 # 是否向bing提交,可选值:1 | 0(0:否;1:是)
baidu: 1 # 是否向baidu提交,可选值:1 | 0(0:否;1:是)
txt_path: submit_urls1.txt ## 文本文档名, 需要推送的链接会保存在此文本文档里
baidu_host: https://www.wr0926.ml ## 在百度站长平台中注册的域名
baidu_token: mNvdE6LuwvryhaeS ## 请注意这是您的秘钥, 所以请不要把它直接发布在公众仓库里!
bing_host: https://wr0926.ml ## 在bing站长平台中注册的域名
bing_token: 20a2e3265af3455eb437e518d6ead7c7 ## 请注意这是您的秘钥, 所以请不要把它直接发布在公众仓库里!
google_host: https://wr0926.ml ## 在google站长平台中注册的域名
google_key_file: Project.json #存放google key的json文件,放于网站根目录(与hexo _config.yml文件位置相同),请不要把json文件内容直接发布在公众仓库里!
replace: 0 # 是否替换链接中的部分字符串,可选值:1 | 0(0:否;1:是)
find_what: http://wr0926.ml
replace_with: https://wr0926.ml
#
aplayer:
meting: true
marked:
gfm: true
pedantic: false
breaks: true
smartLists: true
smartypants: true
quotes: '“”‘’'
modifyAnchors: 0
anchorAlias: false
autolink: true
mangle: true
sanitizeUrl: false
headerIds: true
lazyload: false
prependRoot: false
postAsset: false
external_link:
enable: true
exclude: []
nofollow: true
disableNunjucks: false
descriptionLists: true
minify:
js: false
css: false
html: false
nofollow:
enable: true
field: site
exclude:
- 'wr0926.ml'
- 'wayne0926.gitee.io'
- 'www.wr0926.ml'
# offline config passed to sw-precache.
service_worker:
maximumFileSizeToCacheInBytes: 5242880
staticFileGlobs:
- public/**/*.{js,html,css,png,jpg,gif,svg,eot,ttf,woff,woff2}
stripPrefix: public
verbose: true
runtimeCaching:
- urlPattern: /* # 子路径(接受通配符)
handler: cacheFirst
options:
origin: unpkg.com # 域名
- urlPattern: /gh/* # 子路径(接受通配符)
handler: cacheFirst
options:
origin: cdn.jsdelivr.net # 域名
- urlPattern: /t/* # 子路径(接受通配符)
handler: cacheFirst
options:
origin: at.alicdn.com # 域名
- urlPattern: /* # 子路径(接受通配符)
handler: cacheFirst
options:
origin: fonts.googleapis.com # 域名
- urlPattern: /npm/* # 子路径(接受通配符)
handler: cacheFirst
options:
origin: cdn.jsdelivr.net # 域名
fcircle:
enable: true #控制开关
apiurl: https://hexo-circle-of-friends-api-livid.vercel.app/api #api地址
maxnumber: 20 #【可选】页面展示文章数量
addnumber: 10 #【可选】每次加载增加的篇数
opentype: '_blank' #【可选】'_blank'打开新标签,'_self'本窗口打开,默认为'_blank'
nofollow: true #【可选】开启禁止搜索引擎抓取,默认开启
preload: #【可选】加载动画图片链接
css: #【可选】开发者接口,自定义css链接
js: #【可选】开发者接口,自定义js链接
path: friend #【可选】fcircle的路径名称。默认为 fcircle,生成的页面为 fcircle/index.html
front_matter: #【可选】fcircle页面的 front_matter 配置
title: 朋友圈
comments: false