2024-04-10 16:52:41 +02:00
|
|
|
<?php snippet('header'); ?>
|
|
|
|
|
|
|
|
|
|
<main id="<?= $page->template() ?>">
|
|
|
|
|
<article>
|
2024-04-11 10:12:36 +02:00
|
|
|
<?php snippet('cover', slots: true) ?>
|
2024-04-10 16:52:41 +02:00
|
|
|
<?php slot('text') ?>
|
2024-04-11 10:12:36 +02:00
|
|
|
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
2024-04-10 16:52:41 +02:00
|
|
|
<div class="edito"><?= $page->edito() ?></div>
|
2024-04-11 10:12:36 +02:00
|
|
|
<p class="h3">textes :</p>
|
2024-04-10 16:52:41 +02:00
|
|
|
<ul class="texts">
|
|
|
|
|
<?php foreach($page->children() as $article): ?>
|
|
|
|
|
<li
|
|
|
|
|
class="text"
|
|
|
|
|
>
|
|
|
|
|
<a href="<?= $article->url() ?>" class="text__title no-line">
|
|
|
|
|
<h4><?= $article->title() ?></h4>
|
|
|
|
|
</a>
|
|
|
|
|
<div class="text__infos">
|
|
|
|
|
<p>
|
|
|
|
|
<span class="light">par</span>
|
2024-10-16 08:53:53 +02:00
|
|
|
<a class="author" href="/auteurs/<?= Str::slug($article->author()->toPage()->title()) ?>"><?= $article->author()->toPage()->title() ?></a><br>
|
2024-04-10 16:52:41 +02:00
|
|
|
<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 endforeach ?>
|
|
|
|
|
</ul>
|
|
|
|
|
<?php endslot() ?>
|
|
|
|
|
<?php endsnippet() ?>
|
|
|
|
|
</article>
|
|
|
|
|
</main>
|