This commit is contained in:
isUnknown 2025-02-03 16:32:36 +01:00
parent 1e91353c86
commit fc267d80d1
5 changed files with 110 additions and 51 deletions

View file

@ -4,20 +4,29 @@
<?php snippet('cover', array('isOpen' => true), slots: true) ?>
<?php slot('title') ?>
<h1 class="main-title"><?= $page->title() ?></h1>
<?php if ($page->subtitle()->isNotEmpty()): ?>
<h2 class="main-subtitle fs-l"><?= $page->subtitle()->inline() ?></h2>
<?php endif ?>
<p>
<span class="light">ouverte depuis le </span><?= $page->openDate()->toDate('d/m/Y') ?>
</p>
<?php endslot() ?>
<?php endsnippet() ?>
<div id="main-content">
<?php if ($page->chapo()->isNotEmpty()): ?>
<div id="chapo">
<?= $page->chapo() ?>
<div id="main-content"
x-data="{
edito: false
}"
>
<?php if ($page->edito()->isNotEmpty()): ?>
<div
id="edito"
:class="edito ? '' : 'short'"
>
<?= $page->edito() ?>
</div>
<button
:class="edito ? 'open' : 'close'"
class="see-more toggle-btn toggle-btn--left"
@click="edito = !edito"
>Lire</button>
<?php endif ?>
<ul class="texts">
<?php foreach($page->children() as $article): ?>