2024-04-10 16:52:41 +02:00
|
|
|
<?php snippet('header'); ?>
|
|
|
|
|
|
|
|
|
|
<main id="<?= $page->template() ?>">
|
|
|
|
|
<article>
|
|
|
|
|
<?php snippet('cover', slots: true) ?>
|
|
|
|
|
<?php slot('title') ?>
|
|
|
|
|
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
|
|
|
|
<?php endslot() ?>
|
|
|
|
|
|
|
|
|
|
<?php slot('text') ?>
|
|
|
|
|
<div class="edito"><?= $page->edito() ?></div>
|
|
|
|
|
<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>
|
|
|
|
|
<a class="author" href="/auteurs/<?= Str::slug($article->author()->toUser()->name()) ?>"><?= $article->author()->toUser()->name() ?></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 href="/categories/<?= $article->category() ?>"><?= $article->category() ?></a>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<?php endforeach ?>
|
|
|
|
|
</ul>
|
|
|
|
|
<?php endslot() ?>
|
|
|
|
|
<?php endsnippet() ?>
|
|
|
|
|
</article>
|
|
|
|
|
</main>
|