forked from zchengsite/hexo-theme-oranges
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.yml
285 lines (255 loc) · 7.12 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
# Configuration Instruction:
# favicon: website icon
# avatar: User avatar and nickname in the theme
# rss: RSS feed
# gtag: Google Analytics
# comments: Article commenting system
# gitalk
# disqus
# navbar: Theme page navigation bar
# catalog: Article table of contents
# prevnext: Previous and next page at the end of the article
# friends: Friends' links
# footer: Footer information
# search: Article search
# colorSwitch: Dark/light color scheme switch
# postShare: Article sharing
# codeBlock: Code block configuration
# enable: Whether to enable the corresponding feature, optional true or false
# Website icon / 网站图标
favicon:
enable: true
icon: /images/favicon.png
touch_icon: /images/favicon.png
# User Avatar and nickname / 用户头像与昵称
avatar:
author_photo: /images/avatar.png
author_nickname: Arch
path: /
# Google Analytics
# https://analytics.google.com
# 注册Google分析账号,在管理/创建媒体资源/选择网站/填写相关信息后得到跟踪Id,一般格式为UA-xxxxxxx-x
# 如之前已有注册账号,在管理/跟踪信息/跟踪代码/找到跟踪ID,一般格式为UA-xxxxxxx-x
gtag:
enable: false
gtagkey: UA-xxxxxxx-x
# Comment feature for the post / 文章评论系统
comments:
enable: false
# Currently, only gitalk, valine, and disqus comments are supported. You can choose one you like and enable it.
# 目前仅支持gitalk, valine, disqus评论,选择喜欢的一种开启即可
gitalk:
# https://github.com/gitalk/gitalk#usage
enable: false
clientID:
clientSecret:
repo:
owner:
admin:
id: location.pathname
distractionFreeMode: false
valine:
# English Doc: https://valine.js.org/en/quickstart.html#Get-AppID-and-AppKey
# 中文说明: https://valine.js.org/quickstart.html#%E8%8E%B7%E5%8F%96APP-ID-%E5%92%8C-APP-Key
enable: false
appId:
appKey:
placeholder: Welcome!
avatar: retro
vempty_display: false
# disqus 需科学上网方可使用
disqus:
# https://disqus.com/
# 注册账号,获取shortname.disqus.com,shortname为你定义的唯一name
# 例:我注册配置完毕后的网址为zxcxxxx.disqus.com,https-zxcxxxx-github-io即为shortname
enable: false
shortname: https-zxcxxxx-github-io
# waline https://waline.js.org
waline:
enable: false
serverURL:
# Theme Page Navigation Bar / 主题页面导航栏
navbar:
-
name: Home
enable: true
path: /
key: home
-
name: Archives
enable: true
path: /archives/
key: archives
-
name: Categories
enable: true
path: /categories/
key: categories
-
name: Tags
enable: true
path: /tags/
key: tags
-
name: About
enable: true
path: /about/
key: about
-
name: Friends
enable: true
path: /friends/
key: friends
# Table of Contents / 文章目录
catalog:
enable: true
# "Previous Page" and "Next Page" buttons at the end of the article
# 文章末尾的上一页与下一页
prevnext:
enable: true
# Friend Links: Supports multiple friend links.
# 友链详细信息:支持多个友链
friends:
# nickname: 昵称
# site: 地址
# meta: 描述
-
nickname: Zcheng
site: https://zcheng.site/
meta:
-
nickname: Hexo
site: https://hexo.io/
meta:
# Footer information / 页脚信息
footer:
# social: 社交方式
social:
# name: 名称
# icon: 图标,目前仅支持IconFont部分图标
# path: 地址
# Uncomment as needed to enable / 按需取消注释以启用
-
name: github
icon: github
path: https://github.com/sissilab
-
name: email
icon: envelope
path: mailto:[email protected]
# -
# name: facebook
# icon: facebooksquare
# path:
# -
# name: twitter
# icon: twitter
# path:
# -
# name: wechat
# icon: wechat
# path:
# -
# name: weibo
# icon: weibo
# path:
# -
# # rss需安装 hexo-generator-feed 插件
# # 具体参照https://github.com/hexojs/hexo-generator-feed
# name: rss
# icon: rss
# path: /atom.xml
# more: More footer information / 更多页脚信息
more:
# 支持变量显示,可自定义扩展,具体见主题/layout/_partial/footer.ejs
# 一般用来显示根据各种场景需要切换的文本,如时间年份
# 如:{thisYear} 会被替换为今年年份
-
name: Copyright © {thisYear} Arch
path: https://github.com/sissilab/hexo-theme-arch
-
name: Theme by Arch | Powered by Hexo
path: https://github.com/sissilab/hexo-theme-arch
# Page views statistics / 浏览量统计
# http://busuanzi.ibruce.info/
views:
enable: false
provider: '//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js'
item:
-
enable: true
id: busuanzi_value_site_pv
name: 本站总访问量
unit: 次
-
enable: true
id: busuanzi_value_page_pv
name: 本文总阅读量
unit: 次
-
enable: true
id: busuanzi_value_site_uv
name: 本站访客数
unit: 人
# Article Content Search / 文章搜索
search:
enable: true
placeholder: search...
# Dark/Light Mode Toggle / 深/浅配色切换
colorSwitch:
enable: true
# Article Sharing / 文章分享
postShare:
enable: true
twitter:
enable: true
facebook:
enable: true
# Code Block Configuration / 代码块配置
codeBlock:
# Code block styling, default 'normal' / 代码块风格,默认normal
# Options: default 'normal', 'mac-black' style for Mac dark mode / 可选:默认风格'normal';mac黑色风格:'mac-black'
style: 'normal'
# Code Copying / 代码复制
copy:
enable: true
# MathJax Support
# 数学公式支持
mathjax:
enable: true
# cdn配置,默认关闭,如需启动,先确保对应插件版本cdn资源可用后再开启
# 如资源加载失败,可替换cdn提供商或设置enable:false默认走本地资源
# 也可使用自己的cdn服务,资源在/theme/oranges/source/plugins下
cdns:
jquery:
enable: false
url: https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
fancybox:
enable: false
url:
css: https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.css
js: https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.js
# LaTeX 公式
mathjax:
enable: false
url: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js
# 代码块复制
clipboard:
enable: false
url: https://cdn.jsdelivr.net/npm/[email protected]/dist/clipboard.min.js
# 评论系统
comments:
gitalk:
enable: false
url:
css: https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css
js: https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js
valine:
enable: false
url: https://cdn.jsdelivr.net/npm/[email protected]/dist/Valine.min.js
waline:
enable: false
url: https://cdn.jsdelivr.net/npm/@waline/[email protected]/dist/legacy.min.js
# 主题色
themeColor: '#1c84c8'
codeColor: '#808080'