Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit b90998f

Browse files
committed
updagte
Signed-off-by: Innei <[email protected]>
1 parent 66cc0a9 commit b90998f

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

pages/themes/shiro/config.mdx

+28-8
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
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

@@ -48,10 +48,30 @@
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
此部分配置了网站的一些特定功能模块,比如活动跟踪、捐赠支持、社交媒体链接等。

0 commit comments

Comments
 (0)