-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path_config.yml
More file actions
223 lines (187 loc) · 7.09 KB
/
_config.yml
File metadata and controls
223 lines (187 loc) · 7.09 KB
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
#网站基本信息配置
title: Springing #网站的名称
subtitle: '小春子' #网站的副标题
description: '一个分享生活趣事和各种知识的地方' #网站的描述
keywords: 小春子,Springing,博客,信息技术,教程,IT,我的世界,minecraft,mcbbs,hacker,happyking,node.js,happyking #网站关键词语
author: 小春子 #博主名称
language: zh-CN #语言
timezone: '' #时钟
url: https://blog.springing.top/ #填写你的网址
root: / #根域(默认不用改动)
theme: Spring #主题(不需要改动)
date_format: YYYY-MM-DD #日期格式
time_format: HH:mm:ss #时间格式
#文件目录结构信息配置
source_dir: source #source文件夹
public_dir: public #hexo静态文件存放文件夹
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render: #指定不渲染的文件夹(注意这里默认是source目录的,还有要带“”)
#- 'upgrade-your-browser/**' #升级浏览器提示
# 链接更短 hexo-abbrlink插件
permalink: p/:abbrlink/
abbrlink:
alg: crc32 # 算法:crc16(default) and crc32
rep: hex # 进制:dec(default) and hex
permalink_defaults:
pretty_urls:
trailing_index: true # 不要随便改动
# 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: 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: ''
# 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: 12
order_by: -date
# 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/
## 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:
#上传配置
deploy:
- type: git
repo:
gitHub: https://XINGMOUREN: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@github.com/XINGMOUREN/XINGMOUREN.github.io.git,master #需要改为自己的仓库
# - type: cjh_bing_url_submitter
# - type: tencent_cdn
#腾讯云刷新
#见https://blog.happyking.top/p/20230109/
tencentcdn:
secretId: '#' ## 你在https://console.cloud.tencent.com/cam/capi 获取到的SecretId
secretKey: '#' ## 你在https://console.cloud.tencent.com/cam/capi 获取到的SecretKey
type: 1 #刷新方式,1为只刷新变更资源,2为刷新网站下的全部缓存
timer: 90000 #延时器,单位为毫秒,延时多长时间再执行刷新命令
#文章密码
encrypt:
enable: true
#音乐播放器(aplayer)
aplayer:
meting: false
asset_inject: false
#搜索功能
#选择性改动,可以选择默认的algolia或者本地搜索,如果选择了algolia的话需要把下面的也配置了
plugins:
- hexo-algoliasearch
#搜索引擎
# 如果搜索功能用的是这个,那就要配置这个
algolia:
appId: "YS1ZHKBSSM" #前往官网注册获取
apiKey: "3cfe0b753138610a4e366d945ea3fda5" #前往官网注册获取
adminApiKey: "a6562a3e612a9656df45d1ac2afb08f8" #前往官网注册获取
chunkSize: 5000
indexName: "hexo_blog"
fields:
- content:strip:truncate,0,200
- tags
- permalink
- excerpt:strip
- title
- categories
#标签外挂
# see https://akilar.top/posts/615e2dec/
tag_plugins:
enable: true # 开关
priority: 2 #过滤器优先权
issues: false #issues标签依赖注入开关
link:
placeholder: https://bu.dusays.com/2023/07/14/64b14651ea895.webp #link_card标签默认的图标图片
CDN:
anima: https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus@latest/lib/assets/font-awesome-animation.min.css #动画标签anima的依赖
jquery: https://npm.elemecdn.com/jquery@latest/dist/jquery.min.js #issues标签依赖
issues: https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus@latest/lib/assets/issues.js #issues标签依赖
iconfont: //at.alicdn.com/t/font_3294602_1f1y3b7pyh2.js #参看https://akilar.top/posts/d2ebecef/
carousel: https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus@latest/lib/assets/carousel-touch.js
tag_plugins_css: https://npm.elemecdn.com/hexo-butterfly-tag-plugins-plus@latest/lib/tag_plugins.css
# 自动生成sitemap
sitemap:
path: sitemap.xml
# 图片懒加载
lazyload:
enable: false # 是否开启图片懒加载
onlypost: true # 是否只对文章的图片做懒加载
loadingImg: /img/loading.gif
isSPA: true # 这个是为了适配pjax的,针对单页面进行刷新
preloadRatio: 3 # 在多少的可见区域进行加载,默认是1
#中文链接转拼音
permalink_pinyin:
enable: false
separator: '-' # default: '-'
#提交url
hexo_submit_urls_to_search_engine:
count: 333 #提交最新的多少个链接
# 提交修改时间在 n 秒内的链接,单位秒。例如:
# 有两个文件 a.txt 和 b.txt,分别对应 https://yoursite.com/a.txt 和 https://yoursite.com/b.txt
# 其更新时间距当前分别为 800s 和 1000s(period 字段设为 900)
# 则 https://yoursite.com/a.txt 会被提交,https://yoursite.com/b.txt 不会
period: 900
# 提交链接的条件,可选值:count | period。不同取值的含义如下:
# count :应用上述的 count 配置项
# period:应用上述的 period 配置项
submit_condition: count
# 是否向 Google 提交,可选值:1 | 0(0:否;1:是)
google: 0
# 是否向 Bing 提交,可选值:1 | 0(0:否;1:是)
bing: 1
# 是否向 Baidu 提交,可选值:1 | 0(0:否;1:是)
baidu: 1
# 文本文档的地址,要推送的链接会保存在此文本文档里
txt_path: submit_urls.txt
# 在百度站长平台中注册的域名
baidu_host: https://blog.happyking.top/
# 百度自动推送 API 的 token(获取方式见插件文档:https://cjh0613.com/20200603HexoSubmitUrlsToSearchEngine.html)
baidu_token: http://data.zz.baidu.com/urls?site=https://blog.happyking.top&token=gYVCUwZ8LJSL0Oe2
# 在必应站长平台中注册的域名
bing_host: https://blog.happyking.top/
# 必应自动推送 API 的 token(获取方式见插件文档:https://cjh0613.com/20200603HexoSubmitUrlsToSearchEngine.html)
bing_token: e7c52b7eebaa42ab8769cbb267bdacf7
# 在谷歌站长平台中注册的域名
google_host: https://yoursite.com/
# 存放 google key 的 json 文件,放于网站根目录
google_key_file: google_key.json