forked from Lete114/Hexo-Theme-MengD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config.yml
228 lines (194 loc) · 6.86 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
#--------------------------------------------------------
# Hexo-MengD(萌典)
# 项目地址:https://github.com/lete114/hexo-theme-MengD
# 主题文档:https://mengd.lete114.top/
# 一个简约优雅,及美丽漂亮的主题
#--------------------------------------------------------
# 导航栏菜单
# menu:
# 首页: /
# 标签: /tags
# 分类: /categories
# 归档: /archives
# 友情链接: /link
# 关于我: /about
# 基本设置(会覆盖hexo的配置)
title: Hexo-Theme-MengD(萌典) #Lete乐特's Blog
author: MengD(萌典)
mail: lete@lete114.top
favicon: /img/favicon.png
avatar: /img/logo.gif
language: zh-CN
keywords:
description: 一个简约优雅,及美丽漂亮的主题!!
upjiang: false # 是否显示up酱(回到顶部)
cover: true # 是否开启主页文章cover(首图)
# 是否开启版权(文章内可以设置copyright: false 属性单独关闭某个文章的版权)
copyright: true
page_count: 5 # 首页显示的文章数
# 需安装插件: npm install hexo-generator-search --save
search:
enable: true
path: /search.xml
field: post
# 资源压缩,主题默认内置的压缩只是简单的压缩
# 需要更全面的压缩请安装插件: npm install hexo-minify --save
minify:
js: true
css: true
html: true
## 404页面
error_404:
enable: true # 是否开启404页面
text: 404!页面君找不到这个网页!! # 自定义内容
sec: 10 # 多少秒后返回首页
background: https://cdn.jsdelivr.net/gh/lete114/CDN2/img/wei_er_li_te/3.jpg # 404页面背景颜色,默认白色
# 自动截取
post_content:
line: 3 # 显示多少行后出现省略号(...)
length: 500 # 截取多少字
## 代码块样式
highlight_theme: mac # default / darker / pale night / light / ocean / mac / mac light
# 图标
social:
fab fa-github: https://github.com/lete114
fa fa-envelope: mailto:lete@lete114.top
## 主题颜色
theme_color:
main: '#e58a8a' # 主色
fan: '#00c4b6' # 小风车
progress: '#06c5d8' # toc进度条颜色
scrollbar: '#e58a8a' # 滚动条颜色
body-a: '#00c4b6' # 全局a标签颜色
author-name: '#ff7242' # 博主昵称
# 通过issues申请友情链接(目前只支持gitee)
link:
issues:
enable: false # 是否开启
title: Gitee友链 # 主标题
subtitle: Gitee友链 # 副标题
owner: lete114 # 仓库拥有者
repo: link # 仓库昵称
show_position: later # 显示的位置 前(before) / 后(later)
repo_pr:
enable: true # 是否开启
yml_url: https://cdn.jsdelivr.net/gh/lete114/CDN@latest/link.yml # 友链yml文件
show_position: later # 显示的位置 前(before) / 后(later)
## share分享
## https://github.com/overtrue/share.js/
share:
sites:
- facebook
- qq
- weibo
- wechat
- twitter
## 打赏
reward:
enable: true
alipay: https://cdn.jsdelivr.net/gh/lete114/CDN@2.0/Use/zfb.png
wechat: https://cdn.jsdelivr.net/gh/lete114/CDN@2.0/Use/wzf.png
## pjax
## https://github.com/MoOx/pjax
pjax: true
## MathJax
## https://github.com/mathjax/MathJax
MathJax: true
# 评论
## 注意大小写
comment: twikoo # twikoo / waline / valine
# valine
## https://valine.js.org/
valine:
appid: qvkfxxxxxxxxxxxxxxxxxxxxxbMMI # 你的 leancloud app id
appkey: WOURxxxxxxxxxxxxxxxxxWJrog # 你的 leancloud app key
master: 2a776xxxxxxxxxxxxxxxxxd7f4442e2 # (原版valine不支持)你的邮箱md5加密(百度搜索md5在线加密)
friends: ed5bb69dfxxxxxxxxxxxxxxe6893b,d24719e3bxxxxxxxxxxxxxxbac991457 # (原版valine不支持)你的小伙伴的md5邮箱加密
placeholder: 快来评论吧!! #评论框占位符
avatar: '' # gravatar style https://valine.js.org/#/avatar
meta: ['nick','mail','link'] # 评论者相关属性
pageSize: 5 # comment list page size
lang: zh-CN # i18n: zh-CN/zh-TW/en/ja
emojiCDN: # emoji CDN
emojiMaps: # 自定义表情包
enableQQ: true # enable the Nickname box to automatically get QQ Nickname and QQ Avatar
option: # 自定义添加 https://valine.js.org/configuration.html
# waline
## https://waline.js.org
waline:
serverURL: https://waline.vercel.app/ # 服务端地址
placeholder: 快来评论吧!! #评论框占位符
avatar: '' # gravatar style https://valine.js.org/#/avatar
meta: ['nick','mail','link'] # 评论者相关属性
pageSize: 5 # comment list page size
lang: zh-CN # i18n: zh-CN/zh-TW/en/ja
requiredFields: ['nick','mail','link'] # 评论人必填项
emojiCDN: # emoji CDN
emojiMaps: # 自定义表情包
option: # 自定义添加 https://waline.js.org/client/basic.html
# twikoo
## https://twikoo.js.org/
twikoo:
envId: xxxxxxxx # 你的环境id
region: ap-shanghai # 环境地域,ap-shanghai / ap-guangzhou
path: window.location.pathname # 用于区分不同文章的自定义 js 路径,如果您的文章路径不是 location.pathname,需传此参数
option:
# toc目录
toc:
enable: true
scrollbar: true ## 是否隐藏toc滚动条
# 页脚
footer:
since: 2020
custom_text: 我相信我可以,但我一直在路上,所以我有无限的可能!!
icp:
enable: true
text: 黔 ICP 备 20006055 号
icon: /img/icp.png
url: http://www.beian.miit.gov.cn/
cdn:
enable: true
text: 提供加速服务
icon: https://cdn.jsdelivr.net/gh/lete114/CDN/upyun/05.png
url: https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral
# 百度统计
analytics:
baidu:
google:
# 自定义引入外部css、js
import:
head:
-
botton:
-
# 例如:
# - <link rel="stylesheet" href="/css/index.css">
# - <link rel="stylesheet" href="/css/index.css">
# - '<style>body{color: red}</style>' ## 注意由于css的‘{}’是关键符号所以需要(单/双)引号''
# - <script>alert(1)</script>
# 主题的css与js引入
## 无特殊要求请勿更改
CDN:
index_css: /css/index.css
index_js: /js/main.js
article_css: /css/article.css
search: /js/search.js
upj: https://cdn.jsdelivr.net/gh/lete114/CDN/Use/up.gif
# pjax
pjax: https://cdn.jsdelivr.net/npm/pjax/pjax.js
# 图片展示
fancybox_css: https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css
fancybox_js: https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js
# 分享
share_css: https://cdn.jsdelivr.net/npm/social-share.js/dist/css/share.min.css
share_js: https://cdn.jsdelivr.net/npm/social-share.js/dist/js/social-share.min.js
# 评论
valine: https://cdn.jsdelivr.net/gh/lete114/CDN2/js/Valine-Lete3.2.js ## 原版: //unpkg.com/valine/dist/Valine.min.js
waline: //cdn.jsdelivr.net/npm/@waline/client/dist/Waline.min.js
twikoo: https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js
# yml转json
js_yaml: https://cdn.jsdelivr.net/npm/js-yaml@latest/dist/js-yaml.min.js
# clipboard
clipboard: https://cdn.jsdelivr.net/npm/clipboard@2.0.6/dist/clipboard.min.js
# math
mathjax: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js