fix #17
This commit is contained in:
parent
32b81867e5
commit
5d09b519c3
3 changed files with 19 additions and 9 deletions
|
|
@ -1,11 +1,18 @@
|
|||
<?php snippet('header'); ?>
|
||||
|
||||
<main id="<?= $page->template() ?>">
|
||||
<article>
|
||||
<article
|
||||
x-data="{edito: false}"
|
||||
>
|
||||
<?php snippet('cover', slots: true) ?>
|
||||
<?php slot('text') ?>
|
||||
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
||||
<div class="edito"><?= $page->edito() ?></div>
|
||||
<div class="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>
|
||||
<p class="h3">textes :</p>
|
||||
<ul class="texts">
|
||||
<?php foreach($page->children() as $article): ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue