This repository was archived by the owner on Nov 2, 2024. It is now read-only.
File tree 1 file changed +28
-8
lines changed
1 file changed +28
-8
lines changed Original file line number Diff line number Diff line change 1
1
# 配置项
2
2
3
- ## 页脚信息(` footer ` )
3
+ ## 页脚信息 (` footer ` )
4
4
5
5
此部分定义页脚的部分信息,主要包括备案、建站年份和页脚导航三部分。
6
6
7
- ### 备案(` otherInfo.icp ` )
7
+ ### 备案 (` otherInfo.icp ` )
8
8
9
9
此部分未在默认配置中提供。以下为参照写法:
10
10
11
11
``` json
12
12
"icp" : {
13
- "text" : " 浙ICP备20028356号 " ,
14
- "link" : " https://beian.miit.gov.cn"
15
- }
13
+ "text" : " 浙 ICP 备 20028356 号 " ,
14
+ "link" : " https://beian.miit.gov.cn"
15
+ }
16
16
```
17
17
18
18
** 如何使用** : 根据参照写法,修改位于 ` text ` 的备案号以及备案号所指向的链接 ` link ` 。
19
19
20
- ### 建站年份(` otherInfo.date ` )
20
+ ### 建站年份 (` otherInfo.date ` )
21
21
22
22
** 如何使用** : ` {{now}} ` 指向当前年份,其他略。
23
23
24
- ### 页脚导航(` linkSections ` )
24
+ ### 页脚导航 (` linkSections ` )
25
25
26
26
分类包括 ` name ` 和 ` links ` 两个字段,对应分类名字及其下链接,其下链接又分为 ` name ` 、` href ` 、` external ` 三个字段,对应链接名字,指向链接和是否外链三个属性。
27
27
48
48
49
49
### 描述 (` description ` )
50
50
51
- 提供了对 ` hero ` 部分的简短描述。
51
+ 提供了对主页 ` hero ` 部分的简短描述。
52
52
53
53
** 如何使用** : 直接修改 ` description ` 的值以更改介绍文本。
54
54
55
+ ## 自定义脚本 (` config.custom ` )
56
+
57
+ 可以配置自定义的 CSS, Script。
58
+
59
+ ### Scripts (` scripts ` )
60
+
61
+ 自定义 JS 脚本。接受一个字符串数组。
62
+
63
+ ### Styles (` styles ` )
64
+
65
+ 自定义 CSS。接受一个字符串数组。
66
+
67
+ ### JavaScript tag (` js ` )
68
+
69
+ 接受一个 [ Script] ( https://nextjs.org/docs/app/api-reference/components/script#props ) Props 参数数组。
70
+
71
+ ### CSS href link (` css ` )
72
+
73
+ 加载外部 CSS,接受一个 CSS 外部样式表链接数组。
74
+
55
75
## 模块 (` config.module ` )
56
76
57
77
此部分配置了网站的一些特定功能模块,比如活动跟踪、捐赠支持、社交媒体链接等。
You can’t perform that action at this time.
0 commit comments