调整更新日志页面 (#317)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Glavo 2025-11-02 20:24:55 +08:00 committed by GitHub
parent 2282931f70
commit 4597954052
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 5 deletions

View File

@ -1,8 +1,6 @@
---
layout: changelog
channel: dev
nowchange: 3.8.0.305
# nowpreview:
title: 开发版更新日志
date: 2021-08-22 23:18:02 +0800
note: Changelogs are written in Chinese.

View File

@ -1,7 +1,6 @@
---
layout: changelog
nowchange: 3.7.3
# nowpreview: 3.7.3
channel: stable
title: 稳定版更新日志
date: 2021-08-22 23:18:02 +0800
note: Changelogs are written in Chinese.

View File

@ -6,6 +6,6 @@ layout: document
{% assign changelogs = site.changelogs | where_exp: "item", "item.relative_path contains channel" | reverse %}
{% for item in changelogs %}
{% assign version = item.slug %}
<h1 id="{% if version == page.nowchange %}nowchange{% elsif version == page.nowpreview %}nowpreview{% else %}HMCL-{{ version }}{% endif %}">HMCL {{ version }}</h1>
<h1 id="{% if forloop.index == 1 %}nowchange{% else %}HMCL-{{ version }}{% endif %}" data-version="{{ version }}">HMCL {{ version }}</h1>
<div>{{ item.content | markdownify }}</div>
{% endfor %}