mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2025-12-15 23:12:40 +08:00
This commit is contained in:
parent
5c4d02c89e
commit
69179534e0
10
_config.yml
10
_config.yml
@ -118,6 +118,16 @@ defaults:
|
|||||||
type: downloads
|
type: downloads
|
||||||
values:
|
values:
|
||||||
toc: false
|
toc: false
|
||||||
|
- scope:
|
||||||
|
path: _changelogs/dev
|
||||||
|
type: changelogs
|
||||||
|
values:
|
||||||
|
channel: dev
|
||||||
|
- scope:
|
||||||
|
path: _changelogs/stable
|
||||||
|
type: changelogs
|
||||||
|
values:
|
||||||
|
channel: stable
|
||||||
|
|
||||||
# liquid:
|
# liquid:
|
||||||
# error_mode: warn
|
# error_mode: warn
|
||||||
|
|||||||
@ -5,7 +5,7 @@ layout: document
|
|||||||
{{ content }}
|
{{ content }}
|
||||||
|
|
||||||
{% assign channel = page.channel | default: 'stable' %}
|
{% assign channel = page.channel | default: 'stable' %}
|
||||||
{% assign changelogs = site.changelogs | where_exp: "item", "item.relative_path contains channel" | reverse %}
|
{% assign changelogs = site.changelogs | where: "channel", channel | reverse %}
|
||||||
{% for item in changelogs %}
|
{% for item in changelogs %}
|
||||||
{% assign version = item.slug %}
|
{% assign version = item.slug %}
|
||||||
<h1 id="{% if forloop.index == 1 %}nowchange{% else %}HMCL-{{ version }}{% endif %}" data-version="{{ version }}">HMCL {{ version }}</h1>
|
<h1 id="{% if forloop.index == 1 %}nowchange{% else %}HMCL-{{ version }}{% endif %}" data-version="{{ version }}">HMCL {{ version }}</h1>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user