actuel-inactuel/site/templates/linear.php

30 lines
1.3 KiB
PHP
Raw Normal View History

2024-04-15 09:35:39 +02:00
<?php snippet('header') ?>
2024-03-09 11:27:10 +01:00
<main id="<?= $page->template() ?>">
2024-04-07 09:57:55 +02:00
<article>
2024-04-09 08:38:29 +02:00
<?php snippet('cover', array('isOpen' => true), slots: true) ?>
2024-04-07 09:57:55 +02:00
<?php slot('title') ?>
2025-02-03 14:58:37 +01:00
<h1 class="main-title"><?= $page->title() ?></h1>
<?php if ($page->subtitle()->isNotEmpty()): ?>
<h2 class="main-subtitle fs-l"><?= $page->subtitle()->inline() ?></h2>
<?php endif ?>
2024-04-07 09:57:55 +02:00
<p>
2024-04-10 16:52:41 +02:00
<span class="light">par</span>
2024-10-16 08:53:53 +02:00
<a class="author" href="/auteurs/<?= Str::slug($page->author()->toPage()->title()) ?>"><?= $page->author()->toPage()->title() ?></a><br>
2024-04-10 16:52:41 +02:00
<span class="light">publié le </span><?= $page->published()->toDate('d/m/Y') ?><br>
2024-12-01 13:57:24 +01:00
<span class="light">dans</span> <a href="<?= $page->parent()->url() ?>" title="voir les textes liés à l'année <?= $page->parent()->title() ?>"><?= $page->parent()->title() ?></a> / <a href="/categories/<?= $page->category() ?>" title="voir les textes de la catégorie <?= $page->category() ?>"><?= $page->category() ?></a>
2024-04-07 09:57:55 +02:00
</p>
<?php endslot() ?>
<?php endsnippet() ?>
2025-01-26 13:00:50 +01:00
2024-11-26 13:21:42 +01:00
<div id="main-content">
2025-02-03 14:36:43 +01:00
<?php if ($page->chapo()->isNotEmpty()): ?>
<div id="chapo">
<?= $page->chapo() ?>
</div>
<?php endif ?>
2024-04-10 14:55:34 +02:00
<?= $page->body() ?>
</div>
2024-04-07 09:57:55 +02:00
</article>
2024-04-15 09:16:27 +02:00
</main>
<?php snippet('footer') ?>