ajout d'une fonction pour faire dans l'autre sens : avoir toute les date (parent et linked) + implémentation de la fonction

This commit is contained in:
antonin gallon 2026-02-09 22:24:17 +01:00
parent 7501e2cbb7
commit 9789b645ff
7 changed files with 43 additions and 12 deletions

View file

@ -27,9 +27,11 @@
href="/auteurs/<?= Str::slug($article->author()->toPage()->title()) ?>"><?= $article->author()->toPage()->title() ?></a><br>
<span class="light">publié le
</span><?= $article->published()->toDate('d/m/Y') ?><br>
<span class="light">dans</span> <a
href="<?= $article->parent()->url() ?>"><?= $article->parent()->title() ?></a>
/ <a
<span class="light">dans</span>
<?php foreach(allYears($article) as $year): ?>
<a href="<?= $year->url() ?>"><?= $year->title() ?></a> /
<?php endforeach ?>
<a
href="/categories/<?= $article->category() ?>"><?= $article->category() ?></a>
</p>
</div>