From 3f5595144df76958cf7a0512bdab3dff86e9c1b2 Mon Sep 17 00:00:00 2001
From: antonin gallon
Date: Mon, 9 Feb 2026 22:44:13 +0100
Subject: [PATCH] =?UTF-8?q?j'avais=20oubli=C3=A9=20:=20header.php,=20linea?=
=?UTF-8?q?r.php,=20grid.php=20pour=20l'impl=C3=A9mentation=20du=20allYear?=
=?UTF-8?q?s().=20Peut-etr=20que=20=C3=A7a=20vaudrait=20le=20coup=20de=20r?=
=?UTF-8?q?efactoris=C3=A9=20tout=20=C3=A7a=20parceque=20=C3=A7a=20fait=20?=
=?UTF-8?q?beaucoup=20de=20duplication?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
site/snippets/header.php | 2 +-
site/templates/grid.php | 8 +++++---
site/templates/linear.php | 9 +++++----
3 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/site/snippets/header.php b/site/snippets/header.php
index dab591e..6d4cbc9 100644
--- a/site/snippets/header.php
+++ b/site/snippets/header.php
@@ -37,7 +37,7 @@ $entryTopPos ??= 20;
"name": "= $page->author() ?>"
}],
"image": "= url('assets/images/logo.png') ?>",
- "description": "= $page->title() ?>, par = $page->author()->toPage()->title() ?>. Publié le = $page->published()->toDate('d/m/Y') ?> dans = $page->parent()->title() ?>/= $page->category() ?>",
+ "description": "= $page->title() ?>, par = $page->author()->toPage()->title() ?>. Publié le = $page->published()->toDate('d/m/Y') ?> dans = implode(', ', allYears($page)->pluck('title')) ?>/= $page->category() ?>",
"datePublished": "= $page->published()->toDate('Y-m-d') ?>",
"dateModified": "= $page->modified('Y-m-d') ?>",
"url": "= $page->url() ?>",
diff --git a/site/templates/grid.php b/site/templates/grid.php
index 2f0a22a..22de55a 100644
--- a/site/templates/grid.php
+++ b/site/templates/grid.php
@@ -12,9 +12,11 @@
href="/auteurs/= Str::slug($page->author()->toPage()->title()) ?>">= $page->author()->toPage()->title() ?>
publié le
= $page->published()->toDate('d/m/Y') ?>
- dans = $page->parent()->title() ?>
- / dans
+
+ = $year->title() ?> /
+
+ = $page->category() ?>
diff --git a/site/templates/linear.php b/site/templates/linear.php
index beab9b3..f8e6e50 100644
--- a/site/templates/linear.php
+++ b/site/templates/linear.php
@@ -14,10 +14,11 @@
href="/auteurs/= Str::slug($page->author()->toPage()->title()) ?>">= $page->author()->toPage()->title() ?>
publié le
= $page->published()->toDate('d/m/Y') ?>
- dans = $page->parent()->title() ?>
- / dans
+
+ = $year->title() ?> /
+
+ = $page->category() ?>