From fd4ac13d88b3bdb5077b78ad6252f88c15c6f3ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E8=8B=8D=E7=8B=97?= Date: Sat, 26 Nov 2022 12:45:49 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=83=20docs:=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/assets/log.json | 40 ++++++++++++++++++++++++++++ docs/guide/config.md | 13 +++++++++ docs/guide/page.md | 1 + package/hexo-theme-async/_config.yml | 2 +- 4 files changed, 55 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/assets/log.json b/docs/.vitepress/assets/log.json index 85adcf79..c6acbbb0 100644 --- a/docs/.vitepress/assets/log.json +++ b/docs/.vitepress/assets/log.json @@ -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", diff --git a/docs/guide/config.md b/docs/guide/config.md index ace77a7f..eff63c86 100644 --- a/docs/guide/config.md +++ b/docs/guide/config.md @@ -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 用于配置主题中使用日期的格式。 diff --git a/docs/guide/page.md b/docs/guide/page.md index ef8d9e66..5a3e9a63 100644 --- a/docs/guide/page.md +++ b/docs/guide/page.md @@ -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+` 以上版本即可。 diff --git a/package/hexo-theme-async/_config.yml b/package/hexo-theme-async/_config.yml index 3254770a..e2c1418b 100644 --- a/package/hexo-theme-async/_config.yml +++ b/package/hexo-theme-async/_config.yml @@ -193,7 +193,7 @@ reward: # cover cover: default: /img/block.jpg - type: date + type: img # Article table of contents toc: