2024-03-09 16:34:09 +01:00
|
|
|
<?php snippet('header'); ?>
|
|
|
|
|
|
|
|
|
|
<main id="<?= $page->template() ?>">
|
2025-01-26 13:00:50 +01:00
|
|
|
<article>
|
|
|
|
|
<?php snippet('cover', slots: true) ?>
|
|
|
|
|
<?php slot('title') ?>
|
2025-12-03 16:08:25 +01:00
|
|
|
<h1 class="main-title"><?= $page->title() ?></h1>
|
2025-01-26 13:00:50 +01:00
|
|
|
<?= $page->presentation() ?>
|
|
|
|
|
<?php endslot() ?>
|
|
|
|
|
<?php endsnippet() ?>
|
|
|
|
|
<div id="main-content">
|
2024-04-10 16:52:41 +02:00
|
|
|
<p class="h3">textes :</p>
|
2025-01-26 13:00:50 +01:00
|
|
|
<ul class="texts">
|
2024-10-25 15:16:50 +02:00
|
|
|
<?php foreach(page('textes')->grandChildren() as $article): ?>
|
|
|
|
|
<?php
|
|
|
|
|
if ($article->author()->toPage()->title()->value() == $page->title()->value()): ?>
|
2024-04-10 16:52:41 +02:00
|
|
|
<li
|
|
|
|
|
class="text"
|
|
|
|
|
>
|
2024-11-26 13:21:42 +01:00
|
|
|
<a href="<?= $article->url() ?>" class="text__title no-underline">
|
2024-04-10 16:52:41 +02:00
|
|
|
<h4><?= $article->title() ?></h4>
|
|
|
|
|
</a>
|
|
|
|
|
<div class="text__infos">
|
|
|
|
|
<p>
|
|
|
|
|
<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 href="/categories/<?= $article->category() ?>"><?= $article->category() ?></a>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<?php endif ?>
|
|
|
|
|
<?php endforeach ?>
|
2025-01-26 13:00:50 +01:00
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</article>
|
2024-03-09 16:34:09 +01:00
|
|
|
</main>
|