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

Commit

Permalink
docs: update shiro config footer part (#60)
Browse files Browse the repository at this point in the history
* docs: update shiro config footer part

Signed-off-by: 浮心物语 <[email protected]>

* Update _meta.json

Signed-off-by: 浮心物语 <[email protected]>

---------

Signed-off-by: 浮心物语 <[email protected]>
  • Loading branch information
wuhang2003 authored Mar 31, 2024
1 parent 311e0d1 commit 1f400a9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
5 changes: 3 additions & 2 deletions pages/themes/shiro/_meta.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"index": "部署主题",
"extra": "额外功能"
}
"extra": "额外功能",
"config": "配置项"
}
33 changes: 30 additions & 3 deletions pages/themes/shiro/config.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
# 配置项

## 站点信息 (`site`)
## 页脚信息(`footer`)

此部分定义页脚的部分信息,主要包括备案、建站年份和页脚导航三部分。

### 备案(`otherInfo.icp`)

此部分未在默认配置中提供。以下为参照写法:

```json
"icp": {
"text": "浙ICP备20028356号",
"link": "https://beian.miit.gov.cn"
}
```

**如何使用**: 根据参照写法,修改位于 `text` 的备案号以及备案号所指向的链接 `link`

### 建站年份(`otherInfo.date`

**如何使用**: `{{now}}` 指向当前年份,其他略。

### 页脚导航(`linkSections`

分类包括 `name``links` 两个字段,对应分类名字及其下链接,其下链接又分为 `name``href``external` 三个字段,对应链接名字,指向链接和是否外链三个属性。

**如何使用**: 根据自己需要增删或修改特定链接及分类,需要注意如果指向外链的话需要加一行 `"external": true`

## 站点信息 (`config.site`)

此部分包含了网站的基础信息设置,例如 favicon(网站图标)的配置。

Expand All @@ -9,7 +36,7 @@
- **`favicon`**: 设置网站在浅色模式下使用的图标。
- **`faviconDark`**: 设置网站在深色模式下使用的图标。

## Hero 部分 (`hero`)
## Hero 部分 (`config.hero`)

`hero` 部分定义了网站首页的主要欢迎信息或介绍部分,这是访问者首次进入网站时看到的部分。

Expand All @@ -25,7 +52,7 @@

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

## 模块 (`module`)
## 模块 (`config.module`)

此部分配置了网站的一些特定功能模块,比如活动跟踪、捐赠支持、社交媒体链接等。

Expand Down

0 comments on commit 1f400a9

Please sign in to comment.