save broken

This commit is contained in:
isUnknown 2024-03-10 19:24:24 +01:00
parent 94d404288f
commit f04e9a66fb
17 changed files with 184 additions and 81 deletions

View file

@ -1,18 +1,20 @@
<?php snippet('header') ?>
<header id="main-header" class="minimized">
<div id="logo" >
<a href="/" class="no-line">
<h2 id="actuel">actuel</h2>
<h2 id="inactuel">inactuel</h2>
</a>
</div>
</header>
<main id="<?= $page->template() ?>">
<article>
<?php snippet('cover', ['isOpen' => true], slots: true) ?>
<?php slot('title') ?>
<h1 class="main-title title-center <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h1>
<p><span class="opacity" style="--opacity:.5">par</span> <a class="author no-line" href="/auteurs/<?= Str::slug($page->author()->toUser()->name()) ?>" title="Voir les articles d'<?= $page->author()->toUser()->name() ?>"><?= $page->author()->toUser()->name() ?></a></p>
<p>
<span class="opacity" style="--opacity:.6">par </span>
<a
class="author"
href="/auteurs/<?= Str::slug($page->author()->toUser()->name()) ?>"
title="Voir les articles d'<?= $page->author()->toUser()->name() ?>"
>
<?= $page->author()->toUser()->name() ?>
</a><br>
<span class="opacity" style="--opacity:.6">le <?= $page->published()->toDate('d/m/Y') ?></span>
</p>
<?php endslot() ?>
<?php slot('tabs') ?>
<?php snippet('tabs', [
@ -20,12 +22,9 @@
'label' => 'édito ' . $page->parent()->title(),
'content' => $page->parent()->edito()
],
'activeTab' => 'édito ' . $page->parent()->title()
]) ?>
<?php endslot() ?>
<?php endsnippet() ?>
<?= $page->body() ?>
</article>
</main>
<?php snippet('footer') ?>
</main>