From 3d69f5a7d2cadda422e954a920e432f88901f418 Mon Sep 17 00:00:00 2001 From: Julien WITTOUCK Date: Thu, 9 Apr 2026 16:08:32 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20:=20refactor=20rss=20feed=20exclusi?= =?UTF-8?q?on=20logic=20to=20use=20type=20instead=20of=20permalink?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/now/_index.md | 1 + content/now/archive/_index.md | 1 + content/now/archive/december-2025/index.md | 1 + layouts/rss.xml | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/content/now/_index.md b/content/now/_index.md index 911e90a..01075c2 100644 --- a/content/now/_index.md +++ b/content/now/_index.md @@ -2,6 +2,7 @@ date: "2026-02-19" language: fr title: "now (Février 2026)" +type: now --- > Ce que je fais en ce moment, inspiré par [nownownow.com](https://nownownow.com/about) diff --git a/content/now/archive/_index.md b/content/now/archive/_index.md index 138186c..73bef1f 100644 --- a/content/now/archive/_index.md +++ b/content/now/archive/_index.md @@ -1,3 +1,4 @@ --- title: "archive" +type: now --- diff --git a/content/now/archive/december-2025/index.md b/content/now/archive/december-2025/index.md index a1cacf6..c29898f 100644 --- a/content/now/archive/december-2025/index.md +++ b/content/now/archive/december-2025/index.md @@ -2,6 +2,7 @@ date: "2025-12-09" language: fr title: "now (Decembre 2025)" +type: now --- > Ce que je fais en ce moment, inspiré par [nownownow.com](https://nownownow.com/about) diff --git a/layouts/rss.xml b/layouts/rss.xml index fdb5c16..23c2a00 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -27,7 +27,7 @@ {{- $pages = $pctx.Pages }} {{- end }} {{- /* Exclure les pages dans now/archive du flux RSS */ -}} -{{- $pages = where $pages "RelPermalink" "not" "match" "^/now/archive/" -}} +{{- $pages = where $pages "Type" "ne" "now" -}} {{- $limit := .Site.Config.Services.RSS.Limit }} {{- if ge $limit 1 }} {{- $pages = $pages | first $limit }} -- 2.51.2