From 5cee6ec9d32dca1aff39b53cb5002985e3ea5a4a Mon Sep 17 00:00:00 2001 From: neveler <55753029+neveler@users.noreply.github.com> Date: Sun, 19 Oct 2025 15:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5=20(#300)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _layouts/home.html | 19 +++++++++++++++++++ index.md | 44 +++++++++++++++++++------------------------- 2 files changed, 38 insertions(+), 25 deletions(-) create mode 100644 _layouts/home.html diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..e45ab72 --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,19 @@ +--- +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 3e39b43..c188575 100644 --- a/index.md +++ b/index.md @@ -1,31 +1,25 @@ --- +layout: home title: HMCL 新手导航 author: wifi-left --- -## 注意 Notice + +> [!NOTE] +> +> +> The articles were written in Simplified Chinese. If you want to help translate them, please send a pull request to [HMCL-docs/pulls](https://github.com/HMCL-dev/HMCL-docs/pulls). Or you can enable your translation tool to read.\ +> If you encounter a BUG, please send feedback in time to [HMCL/issues](https://github.com/HMCL-dev/HMCL/issues).\ +> You can also submit your suggestions here. + +> [!NOTE] +> +> +> 如果您遇到 BUG,请及时在 [HMCL/issues](https://github.com/HMCL-dev/HMCL/issues) 发送反馈。\ +> 您也可以在这里提交您的建议。 +