Hexo 主题之 NexT 配置

纯手动翻译,总耗时:8 小时

英语水平有限,如有错误,请在下方留言

格式:xxx行 的xxx

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
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
# ---------------------------------------------------------------
# 本文档由 April 进行翻译
# ---------------------------------------------------------------
# 网站信息设置
# ---------------------------------------------------------------

# 把你的 favicon.ico 放在 `hexo-site/source/` 目录里.
favicon: /favicon.ico

# 设置默认关键字 (使用逗号来分隔)
keywords: "Hexo, NexT"

# 将 rss 设置为 false 禁止提要链接.
# 准许 rss 为空,将使用网站的提要链接.
# 如果你已经去掉了你的提要,设置 rss 为特定的值.
rss:

# 指定站点运营的日期
#since: 2015

# 尾部的年和作者之间的图标
authoricon: heart

# 尾部 `powered-by` 和 `theme-info` 的版权
copyright: true


# ---------------------------------------------------------------
# SEO 设置
# ---------------------------------------------------------------

# 规范, 设置一个典型链接标签在你的 hexo 里, 你可以使用你的博客的 SEO.
# 见: https://support.google.com/webmasters/answer/139066
# 提示: 在你打开这个标签之前, 记得在 hexo 的 _config.ylml 准备你的 URL ( 例如 url: http://yourdomain.com )
canonical: true

# 在网站副标题改变头部层次 (将会是主要的网站描述) 并在在全部的 post/pages 标题为了较好的 SEO 优化.
seo: false

# 如果 true, 将添加副标题到引导页面, 在主要的 hexo 配置中添加.
# subtitle: Subtitle
index_with_subtitle: false


# ---------------------------------------------------------------
# 菜单设置
# ---------------------------------------------------------------

# 当正在运行的网站在一个子目录里 (例如 domain.tld/blog), 去掉首位的斜杠 (/archives -> archives)
menu:
home: /
#categories: /categories/
#about: /about/
archives: /archives/
tags: /tags/
#sitemap: /sitemap.xml
#commonweal: /404/

# 启用/禁用 菜单图标.
# 图表绘制:
# 绘制一个菜单项目要有一个确定的 FontAwesome 图标名.
# 关键是 FontAwesome 图标的菜单项目名和值. 关键是案例感.
# 当出现问题掩码图标时,表示该项没有绘制图标.
menu_icons:
enable: true
#KeyMapsToMenuItemKey: NameOfTheIconFromFontAwesome
home: home
about: user
categories: th
schedule: calendar
tags: tags
archives: archive
sitemap: sitemap
commonweal: heartbeat


# ---------------------------------------------------------------
# 方案设置
# ---------------------------------------------------------------

# 方案
scheme: Muse
#scheme: Mist
#scheme: Pisces
#scheme: Gemini


# ---------------------------------------------------------------
# 侧栏设置
# ---------------------------------------------------------------

# 友联
# 关键是链接标签展示在用户下方.
# 对象链接的值 (例如 GitHub: https://github.com/iissnan)
#social:
#LinkLabel: Link

# 友联图标
# 图标绘制:
# 绘制一个菜单项目要有一个确定的 FontAwesome 图标名.
# 关键是 FontAwesome 图标的菜单项目名和值. 关键是案例感.
# 当出现地球掩码图标时,表示该项没有绘制图标.
social_icons:
enable: true
icons_only: false
transition: false
# 图标绘制.
# KeyMapsToSocialItemKey: NameOfTheIconFromFontAwesome
GitHub: github
E-Mail: envelope
Google: google
Twitter: twitter
FB Page: facebook
VK Group: vk
Skype: skype
YouTube: youtube
Instagram: instagram
StackOverflow: stack-overflow
Weibo: weibo

# 博客名单
#links_title: Links
#links_layout: block
#links_layout: inline
#links:
#Title: http://example.com/

# 侧栏头像
# 在主题目录(source/images): /images/avatar.jpg
# 在网站目录(source/uploads): /uploads/avatar.jpg
#avatar:

# 在侧栏的内容表
toc:
enable: true

# 自动对内容表添加列表数.
number: true

# 如果 true, 如果头部宽度大于侧栏宽度,则所有单词将放到下一行.
wrap: false

# 创造共用 4.0 国际许可证.
# http://creativecommons.org/
# 可用: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
#creative_commons: by-nc-sa
#creative_commons:

sidebar:
# 侧栏定位, 可用值: left | right
position: left
#position: right

# 侧栏显示, 可用值:
# - post 自动在文章展开. 默认.
# - always 自动在全部文章展开
# - hide 仅在点击侧栏切换图标是展开.
# - remove 完全移除侧栏包括侧栏切换.
display: post
#display: always
#display: hide
#display: remove

# 侧栏距离顶部菜单栏的像素.
offset: 12
offset_float: 12

# 在侧栏里返回顶部
b2t: false

# 滚屏百分比标签 b2t 按钮里
scrollpercent: false

# 在狭窄的视图启用侧栏
onmobile: false


# ---------------------------------------------------------------
# 文章设置
# ---------------------------------------------------------------

# 自动卷起的部分是 <!-- more --> 下面的标记.
scroll_to_more: true

# 自动保存每个文章或页面的滚屏定位到 cookies 里.
save_scroll: false

# 自动在主页摘录描述作为前言文本.
excerpt_description: true

# 自动摘录. 不推荐.
# 请使用 <!-- more --> 在文章精确地控制摘录.
auto_excerpt:
enable: false
length: 150

# 文章元显示设置
post_meta:
item_text: true
created_at: true
updated_at: false
categories: true

# 文章字计数显示设置
# 文档: https://github.com/willin/hexo-wordcount
post_wordcount:
item_text: true
wordcount: false
min2read: false
separated_meta: true

# 微信用户
#wechat_subscriber:
#enabled: true
#qcode: /path/to/your/wechatqcode ex. /uploads/wechat-qcode.jpg
#description: ex. subscribe to my blog by scanning my public wechat account

# 奖赏
#reward_comment: Donate comment here
#wechatpay: /images/wechatpay.jpg
#alipay: /images/alipay.jpg
#bitcoin: /images/bitcoin.png

# 在文章声明许可
post_copyright:
enable: false
license: CC BY-NC-SA 3.0
license_url: https://creativecommons.org/licenses/by-nc-sa/3.0/


# ---------------------------------------------------------------
# 主题杂项设置
# ---------------------------------------------------------------

# 减少 padding / margin 在狭窄宽度设备上的缩进.
mobile_layout_economy: false

# Android Chrome 头部面板颜色 ($black-deep).
android_chrome_color: "#222"

# 徽标定制.
# !!当前只可用默认方案.
# 选项:
# enabled: [true/false] - 替换特定图像
# image: url-of-image - 图像的 url 链接
custom_logo:
enabled: false
image:

# 代码高连主题
# 可用值:
# normal | night | night eighties | night blue | night bright
# https://github.com/chriskempson/tomorrow-theme
highlight_theme: normal


# ---------------------------------------------------------------
# 字体设置
# - 在 Google Fonts 里找字体 (https://www.google.com/fonts)
# - 全部字体设置,这里将有以下风格:
# light, light italic, normal, normal italic, bold, bold italic
# - 请注意,设置太多字体将会导致网站运行缓慢
# - 在 5.0.1 引进
# ---------------------------------------------------------------
font:
enable: true

# 字体主机的 Uri. 例如 //fonts.googleapis.com (默认)
host:

# 全球字体设置在 <body> 元素里使用.
global:
# 外部: true 将加载这个主机的字体家庭.
external: true
family: Lato

# 大字标题的字体设置 (h1, h2, h3, h4, h5, h6)
# 回退到 `global` 字体设置.
headings:
external: true
family:

# 文章的字体设置
# 回退到 `global` 字体设置.
posts:
external: true
family:

# 徽标的字体设置
# 回退到 `global` 字体设置.
# 这的 `size` 选项使用 `px` 作为单位
logo:
external: true
family:
size:

# 代码块和 <code> 字体设置.
codes:
external: true
family:
size:


# ---------------------------------------------------------------
# 第三方服务设置
# ---------------------------------------------------------------

# MathJax 支持
mathjax:
enable: false
per_page: false
cdn: //cdn.bootcss.com/mathjax/2.7.1/latest.js?config=TeX-AMS-MML_HTMLorMML

# 汉字支持文档: https://hanzi.pro/
han: false

# Swiftype 搜索 API 钥匙
#swiftype_key:

# Baidu Analytics ID
#baidu_analytics:

# Duoshuo ShortName
#duoshuo_shortname:

# Disqus
disqus:
enable: false
shortname:
count: true

# Hypercomments
#hypercomments_id:

# changyan
changyan:
enable: false
appid:
appkey:

# 支持 youyan 的评论系统.
# 你可以获得你的 uid 在 http://www.uyan.cc
#youyan_uid: your uid

# 支持 LiveRe 的评论系统.
# 你可以获得你的 uid 在 https://livere.com/insight/myCode (通用网站)
#livere_uid: your uid

# Baidu Share
# 可用值:
# button | slide
# 警示: Baidu Share 不支持 https.
#baidushare:
## type: button

# Share
#jiathis:
# Warn警示ing: JiaThis 不支持 https.
#add_this_id:

# Share
#duoshuo_share: true

# Google Webmaster tools 验证设置
# See: https://www.google.com/webmasters/
#google_site_verification:

# Google Analytics
#google_analytics:

# Yandex Webmaster tools 验证设置
# See: https://webmaster.yandex.ru/
#yandex_site_verification:

# CNZZ count
#cnzz_siteid:

# Application Insights
# 见 https://azure.microsoft.com/en-us/services/application-insights/
# application_insights:

# Make duoshuo show UA
# user_id must NOT be null when admin_enable is true!
# you can visit http://dev.duoshuo.com get duoshuo user id.
duoshuo_info:
ua_enable: true
admin_enable: false
user_id: 0
#admin_nickname: Author


# Facebook SDK Support.
# https://github.com/iissnan/hexo-theme-next/pull/410
facebook_sdk:
enable: false
app_id: #<app_id>
fb_admin: #<user_id>
like_button: #true
webmaster: #true

# Facebook 评论插件
# 这个插件依赖于 Facebook SDK.
# 如果 facebook_sdk.enable 是 false, Facebook 评论插件是无法得到的.
facebook_comments_plugin:
enable: false
num_of_posts: 10 # 最小邮件数是 1
width: 100% # 默认宽度是 550px
scheme: light # 默认方案是 light (light or dark)

# VKontakte API 支持.
# 去获得你的 AppID 访问 https://vk.com/editapp?act=create
vkontakte_api:
enable: false
app_id: #<app_id>
like: true
comments: true
num_of_posts: 10

# Star rating 支持每篇文章.
# 去获得你的 ID 访问 https://widgetpack.com
rating:
enable: false
id: #<app_id>
color: fc6423


# Show number of visitors to each article.
# 你可以访问 https://leancloud.cn 获得 AppID 和 AppKey.
leancloud_visitors:
enable: false
app_id: #<app_id>
app_key: #<app_key>

# 展示 website/page 的 PV/UV 卜算子.
# 获得更多信息在 http://ibruce.info/2015/04/04/busuanzi/
busuanzi_count:
# 如果其他配置是 false ,则只有数值
enable: false
# 定制整个网站的 uv 的范围
site_uv: true
site_uv_header: <i class="fa fa-user"></i>
site_uv_footer:
# 定制整个网站的 pv 的范围
site_pv: true
site_pv_header: <i class="fa fa-eye"></i>
site_pv_footer:
# 定制只有一个页面的 pv 的范围
page_pv: true
page_pv_header: <i class="fa fa-file-o"></i>
page_pv_footer:


# Tencent analytics ID
# tencent_analytics:

# Tencent MTA ID
# tencent_mta:


# 启用百度推送,因此博客将自动推 url 到百度,这非常有助于 SEO
baidu_push: false

# Google 日历
# 通过日历页面把你最近的日程分享给其他人
#
# API 文档:
# https://developers.google.com/google-apps/calendar/v3/reference/events/list
calendar:
enable: false
calendar_id: <required>
api_key: <required>
orderBy: startTime
offsetMax: 24
offsetMin: 4
timeZone:
showDeleted: false
singleEvents: true
maxResults: 250

# Algolia 搜索
algolia_search:
enable: false
hits:
per_page: 10
labels:
input_placeholder: Search for Posts
hits_empty: "We didn't find any results for the search: ${query}"
hits_stats: "${hits} results found in ${time} ms"

# 本地搜索
# 依赖: https://github.com/flashlab/hexo-generator-search
local_search:
enable: false
# if auto, trigger search by changing input
# if manual, trigger search by pressing enter key or search button
trigger: auto
# show top n results per article, show all results by setting to -1
top_n_per_article: 1


# ---------------------------------------------------------------
# 标签设置
# ---------------------------------------------------------------

# 外部 URL 随着 BASE64 加密 & 解密.
# Usage: {% exturl text url "title" %}
# Alias: {% extlink text url "title" %}
exturl: false

# Note 标签 (bs-callout).
note:
# Note 标签风格的值:
# - simple bs-callout old alert style. 默认.
# - modern bs-callout new (v2-v3) alert style.
# - flat flat callout style with background, like on Mozilla or StackOverflow.
# - disabled disable all CSS styles import of note tag.
style: simple
icons: false
border_radius: 3
# Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6).
# Offset also applied to label tag variables. This option can work with disabled note tag.
light_bg_offset: 0

# Label tag.
label: true

# Tabs tag.
tabs:
enable: true
transition:
tabs: false
labels: true
border_radius: 0


#! ---------------------------------------------------------------
#! 不要编辑下列设置
#! 除非你知道你在做什么
#! ---------------------------------------------------------------

# Motion
use_motion: true

# Fancybox
fancybox: true

# 页面加载时顶部的进度条.
pace: false
# 主题列表:
#pace-theme-big-counter
#pace-theme-bounce
#pace-theme-barber-shop
#pace-theme-center-atom
#pace-theme-center-circle
#pace-theme-center-radar
#pace-theme-center-simple
#pace-theme-corner-indicator
#pace-theme-fill-left
#pace-theme-flash
#pace-theme-loading-bar
#pace-theme-mac-osx
#pace-theme-minimal
# 例如
# pace_theme: pace-theme-center-simple
pace_theme: pace-theme-minimal

# 画布-鸟巢
canvas_nest: false

# three_waves
three_waves: false

# 画布_线条
canvas_lines: false

# 画布_球体
canvas_sphere: false

# 只匹配 Pisces 方案
# 画布-丝带
canvas_ribbon: false

# 脚本供应商.
# 你想自定义,设置供应商的一个 CDN 地址.
# 例如
# jquery: https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js
# Be aware that you should use the same version as internal ones to avoid potential problems.
# Please use the https protocol of CDN files when you enable https on your site.
vendors:
# 内部路径前缀. 请不要编辑它.
_internal: lib

# 内部版本: 2.1.3
jquery:

# 内部版本: 2.1.5
# 见: http://fancyapps.com/fancybox/
fancybox:
fancybox_css:

# 内部版本: 1.0.6
# 见: https://github.com/ftlabs/fastclick
fastclick:

# 内部版本: 1.9.7
# 见: https://github.com/tuupola/jquery_lazyload
lazyload:

# 内部版本: 1.2.1
# 见: http://VelocityJS.org
velocity:

# 内部版本: 1.2.1
# 见: http://VelocityJS.org
velocity_ui:

# 内部版本: 0.7.9
# 见: https://faisalman.github.io/ua-parser-js/
ua_parser:

# 内部版本: 4.6.2
# 见: http://fontawesome.io/
fontawesome:

# 内部版本: 1
# https://www.algolia.com
algolia_instant_js:
algolia_instant_css:

# Internal version: 1.0.2
# 见: https://github.com/HubSpot/pace
# Or use direct links below:
# pace: //cdn.bootcss.com/pace/1.0.2/pace.min.js
# pace_css: //cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-flash.min.css
pace:
pace_css:

# 内部版本: 1.0.0
# https://github.com/hustcc/canvas-nest.js
canvas_nest:

# three
three:

# three_waves
# https://github.com/jjandxa/three_waves
three_waves:

# three_waves
# https://github.com/jjandxa/canvas_lines
canvas_lines:

# three_waves
# https://github.com/jjandxa/canvas_sphere
canvas_sphere:

# 内部版本: 1.0.0
# https://github.com/zproo/canvas-ribbon
canvas_ribbon:

# 内部版本: 3.3.0
# https://github.com/ethantw/Han
han:


# 资产
css: css
js: js
images: images

# 主题版本
version: 5.1.2
------------- 本文结束  感谢您的阅读 -------------
0%