-
Notifications
You must be signed in to change notification settings - Fork 5
/
_config.yml
171 lines (154 loc) · 4.52 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
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: 前端迷
subtitle: 凡事豫则立,不豫则废。言前定则不跲,事前定则不困,行前定则不疚,道前定则不穷。
description: frank,前端开发爱好者,沉迷前端,无法自拔,欢迎一切技术交流(不局限于前端),邮箱[email protected]
keywords: 前端迷,前端开发,前端知识大全,前端优化,前端导航,小程序,ru23.com,JavaScript,ajax,angular,css,webpack,react,gulp,htmlhtml5,mocha,nginx,node,css3,vue,vue-cli,scss
author: frank
language: zh-CN
timezone: Asia/Shanghai
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://6fedcom.github.io
# cdn: //cdn.ru23.com
root: /
permalink: note/:abbrlink.html
# permalink_defaults:
# abbrlink config
abbrlink:
alg: crc32 # 算法:crc16(default) and crc32
rep: hex # 进制:dec(default) and hex
# Security
##
encrypt:
enable: true
# Directory
source_dir: source
public_dir: frontend
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: /:year/:month/:title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
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:
# 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
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# 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
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: miho
baidu_url_submit:
count: 50 # 提交最新的链接数
host: ru23.com # 在百度站长平台中注册的域名,虽然官方推荐要带有 www, 但可以不带.
token: mCi9bGbza3HmRDJx # 你的秘钥,每个人都不一样,获取方法在下面
path: baidu_urls.txt # 文本文档的地址,新链接会保存在此文本文档里
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
- type: git
repo: [email protected]:6fedcom/6fedcom.github.io.git,master
branch: gh-pages
# - type: git
# message: update
# repo: [email protected]:/fe/blog.git,master
# - type: baidu_url_submitter
# plugins:
# qiniu:
# offline: false
# sync: true
# bucket: cdnru23
# # secret_file: sec/qn.json or C:
# access_key: HCct3FpW17hnRMdsSCnogNeqtklD5nIiUa9hOrvi
# secret_key: 7Pp2QhmgJo0SdwpKCiuq5M1VMFHbZNj68mjLBwRz
# # 上传的资源子目录前缀.如设置,需与urlPrefix同步
# dirPrefix: img
# #外链前缀
# urlPrefix: https://cdn.ru23.com/img
# #使用默认配置即可
# up_host: http://upload.qiniu.com
# #本地目录
# local_dir:
# source/img
# # 是否更新已经上传过的文件(仅文件大小不同或在上次上传后进行更新的才会重新上传)
# update_exist: true
# image:
# folder: images
# extend:
# js:
# folder: js
# css:
# folder: css
# index2 generator是否包含官方的hexo-generator-index,默认true(包含)
# index2 generator是否包含官方的hexo-generator-index,默认true(包含)
index2_include_index: true # defult is true
# 配置index2 generator,可以是数组或对象
index2_generator:
per_page: 10
order_by: -date
include:
# - tag react # 只包含Web分类下的文章
exclude:
- tag hide # 不包含标签为Hexo的文章
lazyload:
enable: true
onlypost: false
# thumbPath: '/images/thumb'
className: .lazyload #可选 e.g. .J-lazyload-img
# loadingImg: //cdn.ru23.com/lazyload/lazyload.gif #可选 eg. /images/loading.png
# hexo-neat
# 博文压缩
neat_enable: true
# 压缩html
neat_html:
enable: false
exclude:
# 压缩css
neat_css:
enable: true
exclude:
- "**/*.min.css"
# 压缩js
neat_js:
enable: true
mangle: true
output:
compress:
exclude:
- "**/*.min.js"