This repository was archived by the owner on Nov 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +28
-8
lines changed
Expand file tree Collapse file tree 1 file changed +28
-8
lines changed Original file line number Diff line number Diff line change 11# 配置项
22
3- ## 页脚信息(` footer ` )
3+ ## 页脚信息 (` footer ` )
44
55此部分定义页脚的部分信息,主要包括备案、建站年份和页脚导航三部分。
66
7- ### 备案(` otherInfo.icp ` )
7+ ### 备案 (` otherInfo.icp ` )
88
99此部分未在默认配置中提供。以下为参照写法:
1010
1111``` json
1212"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+ }
1616```
1717
1818** 如何使用** : 根据参照写法,修改位于 ` text ` 的备案号以及备案号所指向的链接 ` link ` 。
1919
20- ### 建站年份(` otherInfo.date ` )
20+ ### 建站年份 (` otherInfo.date ` )
2121
2222** 如何使用** : ` {{now}} ` 指向当前年份,其他略。
2323
24- ### 页脚导航(` linkSections ` )
24+ ### 页脚导航 (` linkSections ` )
2525
2626分类包括 ` name ` 和 ` links ` 两个字段,对应分类名字及其下链接,其下链接又分为 ` name ` 、` href ` 、` external ` 三个字段,对应链接名字,指向链接和是否外链三个属性。
2727
4848
4949### 描述 (` description ` )
5050
51- 提供了对 ` hero ` 部分的简短描述。
51+ 提供了对主页 ` hero ` 部分的简短描述。
5252
5353** 如何使用** : 直接修改 ` description ` 的值以更改介绍文本。
5454
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+
5575## 模块 (` config.module ` )
5676
5777此部分配置了网站的一些特定功能模块,比如活动跟踪、捐赠支持、社交媒体链接等。
You can’t perform that action at this time.
0 commit comments