From e646d150b979beb317af1a674ad67877cf20cae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E8=8B=8D=E7=8B=97?= Date: Tue, 13 Sep 2022 16:31:54 +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 | 25 +++++++++++++++++++++---- docs/guide/page.md | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+), 4 deletions(-) diff --git a/docs/.vitepress/assets/log.json b/docs/.vitepress/assets/log.json index 7979507d..70067df1 100644 --- a/docs/.vitepress/assets/log.json +++ b/docs/.vitepress/assets/log.json @@ -2,6 +2,27 @@ { "large_version": "v1.1.x", "children": [ + { + "version": "1.1.4", + "logs": [ + { + "type": "feat", + "text": "支持文章详情页单栏预览(展示空间更大)" + }, + { + "type": "feat", + "text": "添加项目列表模板" + }, + { + "type": "style", + "text": "增强文章详情中链接显示" + }, + { + "type": "refactor", + "text": "拆分友链信息配置(详情见 页面配置-友链 文档吧🤣)" + } + ] + }, { "version": "1.1.3", "logs": [ @@ -64,10 +85,6 @@ "type": "feat", "text": "添加对 KaTex 支持" }, - { - "type": "refactor", - "text": "优化配置项(详情见文档吧🤣)" - }, { "type": "perf", "text": "剥离对 Jquery 依赖" diff --git a/docs/guide/page.md b/docs/guide/page.md index be7c1b52..35f6567f 100644 --- a/docs/guide/page.md +++ b/docs/guide/page.md @@ -12,6 +12,7 @@ - `sticky`:首页排序值 - `banner`:文章页横幅背景,字段参考 [横幅 banner.default](/guide/config.html#横幅-banner) 字段。 - `toc`:是否显示目录,仅当值为 false 生效。默认通过 `_config.async.yaml` 的 `is_toc` 控制。 +- `single_column`:单栏显示详情页,为 true 时生效。 内置的置顶脚本已删除,将 `hexo-generator-index` 升级到 `2.0.0+` 以上版本即可。 @@ -66,6 +67,27 @@ links: desc: 醒,亦在人间;梦,亦在人间 ``` +如果您的友链比较多,可能会导致 `_config.async.yml` 过长,您可以将 links 配置拆分出来。在 Hexo 工作目录下新建 `source/_data/links.yml` 文件,字段和 `_config.async.yml` 中的一致,只是不再需要 `links` 字段。 + +``` yaml +- name: 白云苍狗 + url: //www.imalun.com/ + image: //www.imalun.com/images/avatar.jpg + desc: 醒,亦在人间;梦,亦在人间 +``` + +也可以是 `source/_data/links.json` 文件 + +``` json +[ + { + "name": "白云苍狗", + "url": "//www.imalun.com/", + "image": "//www.imalun.com/images/avatar.jpg", + "desc": "醒,亦在人间;梦,亦在人间" + } +] +``` ## 关于 About 新建关于页面。