diff --git a/_config.yml b/_config.yml index 1cce97c..595a939 100644 --- a/_config.yml +++ b/_config.yml @@ -118,6 +118,16 @@ defaults: type: downloads values: toc: false + - scope: + path: _changelogs/dev + type: changelogs + values: + channel: dev + - scope: + path: _changelogs/stable + type: changelogs + values: + channel: stable # liquid: # error_mode: warn diff --git a/_layouts/changelog.html b/_layouts/changelog.html index cbf5f75..9a72f04 100644 --- a/_layouts/changelog.html +++ b/_layouts/changelog.html @@ -5,7 +5,7 @@ layout: document {{ content }} {% 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 %} {% assign version = item.slug %}

HMCL {{ version }}