parent
4895c0e58b
commit
0529b131a0
4 changed files with 6 additions and 11 deletions
|
|
@ -3,10 +3,8 @@
|
|||
<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') ?>
|
||||
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
||||
<?= $page->presentation() ?>
|
||||
<p class="h3">textes :</p>
|
||||
<ul class="texts">
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
<article>
|
||||
<?php snippet('cover', slots: true) ?>
|
||||
<?php slot('title') ?>
|
||||
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
||||
<?php endslot() ?>
|
||||
<?php slot('text') ?>
|
||||
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
||||
<ul class="texts">
|
||||
<?php foreach($kirby->collection('categories') as $category): ?>
|
||||
<?php if ($category['title'] == $page->title()->value()): ?>
|
||||
|
|
|
|||
|
|
@ -2,13 +2,11 @@
|
|||
|
||||
<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 snippet('cover', slots: true) ?>
|
||||
<?php slot('text') ?>
|
||||
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
||||
<div class="edito"><?= $page->edito() ?></div>
|
||||
<p class="h3">textes :</p>
|
||||
<ul class="texts">
|
||||
<?php foreach($page->children() as $article): ?>
|
||||
<li
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue