From f2a423d4f06a30c4f8c1e1ad46110e4ed87c2193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E8=8B=8D=E7=8B=97?= Date: Mon, 19 Dec 2022 17:30:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=83=20docs:=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/source/_data/style/index.less | 2 +- demo/source/_posts/katex.md | 2 +- docs/.vitepress/assets/log.json | 24 ++++++++++++++++++++++++ docs/guide/config.md | 21 +++++++++++++++++++++ docs/guide/page.md | 2 ++ 5 files changed, 49 insertions(+), 2 deletions(-) diff --git a/demo/source/_data/style/index.less b/demo/source/_data/style/index.less index e67cb25c..80c53717 100644 --- a/demo/source/_data/style/index.less +++ b/demo/source/_data/style/index.less @@ -16,7 +16,7 @@ } .trm-app-frame::before { - content : 'dev'; + content : 'Dev'; position : absolute; z-index : 55; padding : 1rem 3rem 0.5rem; diff --git a/demo/source/_posts/katex.md b/demo/source/_posts/katex.md index 3260f4fd..dba44488 100644 --- a/demo/source/_posts/katex.md +++ b/demo/source/_posts/katex.md @@ -1,7 +1,7 @@ --- title: KaTeX date: 2022-09-22 15:45:29 -categories: 测试分类 +categories: 测试分类2 katex: true toc: false --- diff --git a/docs/.vitepress/assets/log.json b/docs/.vitepress/assets/log.json index 88ac438b..f6b159b4 100644 --- a/docs/.vitepress/assets/log.json +++ b/docs/.vitepress/assets/log.json @@ -2,6 +2,30 @@ { "large_version": "v1.2.x", "children": [ + { + "version": "1.2.8", + "date": "2022-12-19", + "logs": [ + { + "type": "feat", + "text": "支持首页自定义分类" + }, + { + "type": "feat", + "text": "支持文章可设置原文链接" + } + ] + }, + { + "version": "1.2.7", + "date": "2022-12-14", + "logs": [ + { + "type": "fix", + "text": "修复 typedText 无法被覆盖" + } + ] + }, { "version": "1.2.6", "date": "2022-12-09", diff --git a/docs/guide/config.md b/docs/guide/config.md index eff63c86..28af1f3f 100644 --- a/docs/guide/config.md +++ b/docs/guide/config.md @@ -451,6 +451,27 @@ cover: type: img ``` +## 卡片 Card + +这里是一些关于页面中卡片配置合集。 + +### 分类卡片 + +首页中显示的分类卡片。 + +默认情况下,会显示分类里文章最多的两个,您可以通过修改配置来替换默认行为。 + +- `enable`: 是否开启 +- `len`: 需要显示分类数量,默认为 2 个 +- `list`: 如果你需要固定显示分类,可以通过这个字段配置 + +``` yaml +categorie_card: + enable: true + len: 2 + list: ['分类1','分类2'] +``` + ## 日期格式化 Date Format 用于配置主题中使用日期的格式。 diff --git a/docs/guide/page.md b/docs/guide/page.md index 5a3e9a63..7949ebac 100644 --- a/docs/guide/page.md +++ b/docs/guide/page.md @@ -12,6 +12,8 @@ - `toc`:是否显示目录,仅当值为 false 生效。默认通过 `_config.async.yaml` 的 `is_toc` 控制。 - `single_column`:单栏显示详情页,为 true 时生效。 - `author`:文章作者 +- `originalLink`:文章源链接(用于转载) + 内置的置顶脚本已删除,将 `hexo-generator-index` 升级到 `2.0.0+` 以上版本即可。