From 54935ba235f17a66007f1851f4ace293d0d56953 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, 18 Mar 2024 15:37:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=83=20docs:=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/assets/log.json | 10 ++++++++++ docs/guide/page.md | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/docs/.vitepress/assets/log.json b/docs/.vitepress/assets/log.json index a787765d..d903e468 100644 --- a/docs/.vitepress/assets/log.json +++ b/docs/.vitepress/assets/log.json @@ -2,6 +2,16 @@ { "large_version": "v2.1.x", "children": [ + { + "version": "2.1.12", + "date": "2024-03-18", + "logs": [ + { + "type": "feat", + "text": "404 添加配置 #117" + } + ] + }, { "version": "2.1.11", "date": "2024-03-14", diff --git a/docs/guide/page.md b/docs/guide/page.md index 0650dd08..32078743 100644 --- a/docs/guide/page.md +++ b/docs/guide/page.md @@ -182,6 +182,15 @@ layout: 404 在本地,您也可以直接访问 `/404.html` 查看效果。只有当您将其部署到 `GitHub Pages` 上,您访问不存在的页面才会显示。 +在 `_config.async.yml` 中修改 404 文案配置 + +```yaml [修改示例] +not_found: + path: # 点击按钮跳转地址 + name: # 按钮显示文案 + text: # 提示文案 +``` + ## 自定义页面 Customize Page 新建自定义页面。像上面 友链、关于等页面也属于自定义页面,主要区别是它们可以通过约定配置,就可以输出主题内置页面样式,当然如果您想要个性化这些页面,也可以通过自定也页面覆盖主题的默认信行为。