From 69179534e01f631280d97cee6b14dd17d065b98f Mon Sep 17 00:00:00 2001 From: neveler <55753029+neveler@users.noreply.github.com> Date: Wed, 3 Dec 2025 16:13:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9B=B4=E6=96=B0=E6=97=A5?= =?UTF-8?q?=E5=BF=97=20(#360)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 10 ++++++++++ _layouts/changelog.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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 %}