Skip to content

Commit

Permalink
📃 docs: 文档更新
Browse files Browse the repository at this point in the history
  • Loading branch information
白云苍狗 committed Nov 26, 2022
1 parent db247f0 commit fd4ac13
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
40 changes: 40 additions & 0 deletions docs/.vitepress/assets/log.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,46 @@
{
"large_version": "v1.2.x",
"children": [
{
"version": "1.2.5",
"date": "2022-11-26",
"logs": [
{
"type": "feat",
"text": "可自定义默认封面图"
},
{
"type": "feat",
"text": "文章增加自定义作者"
},
{
"type": "fix",
"text": "复制时版权信息显示当前文章作者"
},
{
"type": "fix",
"text": "优化分割线显示"
}
]
},
{
"version": "1.2.4",
"date": "2022-11-19",
"logs": [
{
"type": "fix",
"text": "修复首页 banner 覆盖问题"
},
{
"type": "fix",
"text": "修复 logo 样式宽度不可覆盖"
},
{
"type": "fix",
"text": "修复版本显示多了个 v"
}
]
},
{
"version": "1.2.3",
"date": "2022-10-23",
Expand Down
13 changes: 13 additions & 0 deletions docs/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,19 @@ creative_commons:
url: https://www.imalun.com
```

### 自定义封面图

当您没有设置文章封面图时,将会显示主题内置的封面图,您可以通过修改配置来替换默认行为。

- `default`: 封面默认显示的图片
- `type`: 封面显示类型,可选 `img` || `date`

``` yaml
cover:
default: /img/block.jpg
type: img
```

## 日期格式化 Date Format
用于配置主题中使用日期的格式。

Expand Down
1 change: 1 addition & 0 deletions docs/guide/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- `banner`:文章页横幅背景,字段参考 [横幅 banner.default](/guide/config.html#横幅-banner) 字段。
- `toc`:是否显示目录,仅当值为 false 生效。默认通过 `_config.async.yaml``is_toc` 控制。
- `single_column`:单栏显示详情页,为 true 时生效。
- `author`:文章作者

内置的置顶脚本已删除,将 `hexo-generator-index` 升级到 `2.0.0+` 以上版本即可。

Expand Down
2 changes: 1 addition & 1 deletion package/hexo-theme-async/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ reward:
# cover
cover:
default: /img/block.jpg
type: date
type: img

# Article table of contents
toc:
Expand Down

0 comments on commit fd4ac13

Please sign in to comment.