Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed May 31, 2024
1 parent b1c0c93 commit 534a4ea
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pages/themes/shiro/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,25 @@

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

### 一言 (`hitokoto`)

提供自定义首页一言的功能。

接受一个对象,包含 `random``custom` 两个可选字段。

当存在 `random` 字段时,将会随机获取一言。优先级高于 `custom` 字段。

当存在 `custom` 字段时,将会使用自定义的一言。

如果两个字段都不存在,将会使用默认的一言。

```ts
interface Hitokoto {
random?: boolean
custom?: string
}
```

## 自定义脚本 (`config.custom`)

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

0 comments on commit 534a4ea

Please sign in to comment.