From 3ac9fc467a9a71ecbb48fa18c2d7c33df8e1d460 Mon Sep 17 00:00:00 2001 From: neveler <55753029+neveler@users.noreply.github.com> Date: Tue, 10 Mar 2026 18:28:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=BB=E9=A1=B5=20(#414)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _layouts/home.html | 19 ------------------- index.md | 17 ++++++++++++++--- 2 files changed, 14 insertions(+), 22 deletions(-) delete mode 100644 _layouts/home.html diff --git a/_layouts/home.html b/_layouts/home.html deleted file mode 100644 index e45ab72..0000000 --- a/_layouts/home.html +++ /dev/null @@ -1,19 +0,0 @@ ---- -layout: document ---- - -{{ content }} - -{% capture list %} -{% for group in site.data.navigation.docs -%} -## {{ group.title }} -{% for item in group.children -%} -1. [{{ item.title }}]({{ item.url | relative_url }}) -{%- if item.description %}\ - {{ item.description }} -{%- endif %} -{% endfor %} -{% endfor %} -{% endcapture %} - -{{ list | markdownify }} diff --git a/index.md b/index.md index 79b0119..cce2ccc 100644 --- a/index.md +++ b/index.md @@ -1,7 +1,6 @@ --- -layout: home -title: HMCL 新手导航 -author: wifi-left +layout: splash +title: 新手导航 --- @@ -18,3 +17,15 @@ author: wifi-left > [!NOTE] > 如果您遇到 BUG,请及时在 [HMCL/issues](https://github.com/HMCL-dev/HMCL/issues) 发送反馈。\ > 您也可以在这里提交您的建议。 + +{% include toc %} + +{% for group in site.data.navigation.docs -%} +## {{ group.title }} +{% for item in group.children -%} +1. [{{ item.title }}]({{ item.url | relative_url }}) +{%- if item.description %}\ + {{ item.description }} +{%- endif %} +{% endfor %} +{% endfor %}