Skip to content

Commit 5cee6ec

Browse files
authored
优化首页 (#300)
1 parent 137f679 commit 5cee6ec

2 files changed

Lines changed: 39 additions & 26 deletions

File tree

_layouts/home.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: document
3+
---
4+
5+
{{ content }}
6+
7+
{% capture list %}
8+
{% for group in site.data.navigation.docs -%}
9+
## {{ group.title }}
10+
{% for item in group.children -%}
11+
1. [{{ item.title }}]({{ item.url | relative_url }})
12+
{%- if item.description %}\
13+
{{ item.description }}
14+
{%- endif %}
15+
{% endfor %}
16+
{% endfor %}
17+
{% endcapture %}
18+
19+
{{ list | markdownify }}

index.md

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
---
2+
layout: home
23
title: HMCL 新手导航
34
author: wifi-left
45
---
56

6-
## 注意 Notice
7-
8-
The articles were written in Simplified Chinese. If you want to help translate them, please send a pull request to [GitHub: HMCL-dev/HMCL-docs](https://github.com/HMCL-dev/HMCL-docs/pulls). Or you can enable your translation tool to read.
9-
10-
If you encounter a BUG, please send feedback in time to [GitHub: huanghongxun/HMCL/issues](https://github.com/HMCL-dev/HMCL/issues).
11-
12-
You can also submit your suggestions here.
13-
14-
如果您遇到 BUG,请及时在 [GitHub: huanghongxun/HMCL/issues](https://github.com/HMCL-dev/HMCL/issues) 发送反馈。
15-
16-
您也可以在这里提交您的建议。
17-
18-
{% comment %}
19-
此处的目录从 `_data/navigation.yml` 中的 docs 条目渲染,请修改该文件以更新目录
20-
{% endcomment %}
21-
{% for group in site.data.navigation.docs %}
22-
## {{ group.title }}
23-
24-
{% for item in group.children %}
25-
{{ forloop.index }}. [{{ item.title }}]({{ item.url }})
26-
{%- if item.description %}
27-
28-
{{ item.description }}
29-
{% endif %}
30-
{% endfor %}
31-
{% endfor %}
7+
<!--{% comment %}-->
8+
> [!NOTE]
9+
> <!--{% endcomment %}-->
10+
> <!----{{ '>' }} **Notice** <br> {{ '<' }}!---->
11+
> 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.\
12+
> If you encounter a BUG, please send feedback in time to [HMCL/issues](https://github.com/HMCL-dev/HMCL/issues).\
13+
> You can also submit your suggestions here.
14+
<!----{{ '>' }}
15+
{: .notice--info }
16+
17+
<!--{% comment %}-->
18+
> [!NOTE]
19+
> <!--{% endcomment %}-->
20+
> <!----{{ '>' }} **注意** <br> {{ '<' }}!---->
21+
> 如果您遇到 BUG,请及时在 [HMCL/issues](https://github.com/HMCL-dev/HMCL/issues) 发送反馈。\
22+
> 您也可以在这里提交您的建议。
23+
<!----{{ '>' }}
24+
{: .notice--info }
25+
<!---->

0 commit comments

Comments
 (0)