-
Notifications
You must be signed in to change notification settings - Fork 70
/
daymd.config.js
359 lines (357 loc) · 10 KB
/
daymd.config.js
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
// 全局API接口,设置
const configs = {
// 网站名称
title: "Daymd.",
// hero模式,0:不显示;1:背景图模式;2:宇宙模式;3:博客模式;
heroMode: 3,
// 宇宙模式设置,限heroMode:2
heroModeConfig: {
// 星星数量,number,要求:<1000
starsCount: 250,
// 星星颜色,string
starsColor: "#ffffff",
// 星星旋转速度,number
starsRotationSpeed: 3,
// 彗星出现的频度,number,若值设置为0,隐藏彗星
cometFrequence: 2,
// 星云强度,number,即两侧颜色深度
nebulasIntensity: 0,
// 太阳系数量,number,若设置为0,隐藏
sunScale: 1,
// 行星数量,number,若设置为0,隐藏
planetsScale: 1,
// 太阳系轨道,number,要求<100
solarSystemOrbite: 65,
// 轨道速度,number
solarSystemSpeedOrbit: 100,
},
// 大文字,限heroMode:1|2
heroText: "Do it all with API.",
// 大文字下的说明文字,限heroMode:1
heroContent:
"A blog site builder built with Next.js, Tailwind, DaisyUI, Contentlayer. Almost everything can be configured via the API interface. Get started quickly with zero basics.",
// 标签图标
favicon:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/daymd_logo1.svg",
// NavBar 的样式,参数值 1、2
navTheme: 2,
// 导航栏logo是否显示,0为不显示,1为显示
isNavLogo: 1,
// 博客创建时间,string,格式:YYYY-MM-DD
buildTime: "2020-08-31",
// 导航栏logo图片链接
navLogo:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/daymd_logo1.svg",
// 导航栏透明度,bg-opacity-请不要修改,后面的数字越大越不透明,值为每10增加,范围0~100
// 例如56、45等非整十的值无效
// bg-opacity-xx后面可以添加其他 Tailwind 样式类
navOpacity: "bg-opacity-10",
// Hero的背景图片,限heroMode:1,使用 https://api.maho.cc/random-img/pc.php 接口可以每刷新一次得到不同的二次元背景,详见文档
heroBg: "url(https://api.maho.cc/random-img/pc.php)",
// Hero 按钮上的文字,限heroMode:1
heroButton: "Get Start",
// Hero 按钮跳转的 Link 链接,限heroMode:1
heroButtonLink: "/posts/change-me",
// 主页设置,限heroMode:3
theme2Setting: {
// 右边栏作者头像
avatar:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/20220710133634.png",
// 背景图大小,1为顶部小图,2为整页图,3为混合模式
backSize: 2,
// 背景图链接,url不可省略
topImg: "url(https://api.maho.cc/random-img/pc.php)",
// 右边作者栏作者名称
authorName: "Jetzihan",
// 下面的按钮是否使用中文
zhan: 1,
// 技术栈
techLinks: [
{
tech: "Vue",
styles: "bg-green-200 text-green-900",
},
{
tech: "React",
styles: "bg-blue-200 text-blue-900",
},
{
tech: "Python",
styles: "bg-yellow-200 text-yellow-900",
},
],
// 个人格言
Words: "风筝有风,海豚有海。",
socialIcons: [
{
name: "GitHub",
svgPath:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/icon-github-1.svg",
link: "https://github.com/inannan423",
},
{
name: "掘金",
svgPath:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/icon-juejin-1.svg",
link: "https://juejin.cn",
},
{
name: "CSDN",
svgPath:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/icon-csdn-1.svg",
link: "www.csdn.com",
},
{
name: "bilibili",
svgPath:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/icon-bilibili-1.svg",
link: "https://bilibili.com",
},
{
name: "gitee",
svgPath:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/icon-gitee-1.svg",
link: "www.gitee.com",
},
{
name: "weibo",
svgPath:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/icon-wb-1.svg",
link: "www.weibo.com",
},
{
name: "Zhihu",
svgPath:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/icon-zh-1.svg",
link: "www.weibo.com",
},
{
name: "抖音",
svgPath:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/icon-dy-1.svg",
link: "www.weibo.com",
},
],
},
isHeroButton: 1,
// 导航栏的选项
navItems: [
{
name: "Docs",
to: "/docs",
},
{
name: "Blog",
to: "/posts",
},
{
name: "Nav",
to: "/website",
},
// ...可以继续添加
],
// 导航栏上面的图标,建议使用 svg 格式,外链
// Todo
navIcons: [
{
name: "Github",
icon: "https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/icon-github-1.svg",
to: "https://github.com/inannan423",
},
//... 可以继续添加
],
// 选用的主题
themeSelect: [
{
theme: "winter",
},
{
theme: "forest",
},
{
theme: "dark",
},
{
theme: "night",
},
{
theme: "cupcake",
},
{
theme: "lofi",
},
// ...可以继续添加,请参考文档中的所有主题列表
],
// 是否需要大页脚,1:需要,0:不需要
ifFootItems: 1,
// 大页脚不存在时,底部小页脚中是否需要切换Theme按钮,建议全页只保留一个主题切换按钮
ifFootTheme: 0,
// 页脚链接,ifFootItems: 1 才生效
FooterItems: [
// 每一列
{
label: "本站",
// 列中的每一行
items: [
{
key: 0,
// 链接名称
name: "部署指南",
// 链接地址
to: "/docs",
blank: 0,
},
{
key: 1,
name: "博客",
to: "/posts",
blank: 0,
},
{
key: 1,
name: "快速链接",
to: "/website",
blank: 0,
},
// ... 可继续添加
],
},
{
label: "技术支持",
items: [
{
key: 0,
name: "React",
to: "https://react.docschina.org/",
blank: 1,
},
{
key: 1,
name: "Next.js",
to: "https://nextjs.org/",
blank: 1,
},
{
key: 2,
name: "Contentlayer",
to: "https://www.contentlayer.dev/",
blank: 1,
},
{
key: 3,
name: "DaisyUI",
to: "https://daisyui.com/",
blank: 1,
},
{
key: 4,
name: "Tailwind",
to: "https://tailwindcss.com/",
blank: 1,
},
],
},
{
label: "链接",
items: [
{
key: 0,
name: "Jetzihan",
to: "https://jetzihan.netlify.app",
blank: 1,
},
],
},
// ... 可继续添加
],
// 是否支持主题切换,0为不支持,1为支持
showTheme: 1,
// 页脚 Logo
footLogo:
"https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/daymd_logo1.svg",
// Logo下的加粗文字
footText: "Daymd by Jetzihan.",
// 加粗文字下的文字
footTextNormal: "Made with ❤ by Chengzihan.",
socialIcon: [
{
name: "bilibili",
icon: "https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/bzhan.svg",
to: "https://bilibili.com",
},
{
name: "CSDN",
icon: "https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/csdn.svg",
to: "https://csdn.com",
},
{
name: "稀土掘金",
icon: "https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/xitujuejin.svg",
to: "https://juejin.cn/",
},
],
// 是否启用回到顶部按钮:1是,0否
ifBackTop: 1,
// 回到顶部按钮内的文字,您可以换成”Top“或者”🌵“甚至”❤“等字符
backTopText: "↑",
// 笔记页面设置 ************************************
// 笔记页面标题,建议为tutorial、notes等
notePageTitle: "介绍",
// 笔记、博客右侧边粗体标题文字
rightContentText: "Topics",
// 是否显示面包屑,1:显示。0:不显示。
ifBread: 1,
// 是否显示右边主题栏,1:显示。0:不显示。
ifRightBar: 1,
// 在博客页面是否显示右边主题栏,1:显示。0:不显示。
ifPostRightBar: 1,
// 特殊卡片的标题文字,支持中英文和emoji
cardsInDoc: {
// "注意"卡片的固定文字显示,示例:”注意“、”Warning!“、”⚠“、”警告“
Warning: "注意",
Tip: "提示",
Danger: "危险",
Note: "笔记",
Example: "举例",
},
// doc和post的背景图片,默认为空,即不显示
// docPostBgImg: "url(https://api.maho.cc/random-img/pc.php)",
docPostBgImg: "url(https://api.maho.cc/random-img/pc.php)",
// 博客页面的标题
postPageTitle: "我的博客",
// Markdown中代码块主题样式
/**
* 可用主题:
* 'monokai'
* 'monokai'
* 'nord'
* 'one-dark-pro'
* 'poimandres'
* 'rose-pine-dawn'
* 'rose-pine-moon'
* 'rose-pine'
* 'slack-dark'
* 'slack-ochin'
* 'solarized-dark'
* 详见daymd文档
*/
mdCodeTheme: "one-dark-pro",
// Doc页面时间显示前面的文字
timeText: "Last Updated:",
// post页面时间显示前面的文字
postTimeText: "Date:",
// 文章底部是否显示附属链接,0为不显示
ifDocLink: 1,
// 文章底部的附属链接文字
docLinkText: "文档地址",
// 文章底部附属链接地址,你可以填写你的Github仓库,也可以为你的公众号引流
docLinkUrl: "https://github.com/inannan423/Daymd/tree/main/content/docs",
// 个人导航集合标题
navTitle: "导航分类",
// 是否显示 Banner 图片,1显示,0不显示
ifNavBanner: 1,
// 导航 Banner 图片链接
navBanner:
"url(https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/NavBanner.png)",
};
module.exports = configs;