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

Commit 534a4ea

Browse files
committed
update
Signed-off-by: Innei <[email protected]>
1 parent b1c0c93 commit 534a4ea

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pages/themes/shiro/config.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,25 @@
4343

4444
**如何使用**: 直接修改 `description` 的值以更改介绍文本。
4545

46+
### 一言 (`hitokoto`)
47+
48+
提供自定义首页一言的功能。
49+
50+
接受一个对象,包含 `random``custom` 两个可选字段。
51+
52+
当存在 `random` 字段时,将会随机获取一言。优先级高于 `custom` 字段。
53+
54+
当存在 `custom` 字段时,将会使用自定义的一言。
55+
56+
如果两个字段都不存在,将会使用默认的一言。
57+
58+
```ts
59+
interface Hitokoto {
60+
random?: boolean
61+
custom?: string
62+
}
63+
```
64+
4665
## 自定义脚本 (`config.custom`)
4766

4867
可以配置自定义的 CSS, Script。

0 commit comments

Comments
 (0)