This commit is contained in:
isUnknown 2024-04-11 10:12:36 +02:00
parent 4895c0e58b
commit 0529b131a0
4 changed files with 6 additions and 11 deletions

View file

@ -41,8 +41,7 @@
all: unset;
width: 100%;
background-color: transparent;
padding: 0;
padding-bottom: calc(var(--unit--vertical) / 4);
padding: calc(var(--unit--vertical) / 4) 0;
border: none;
border-bottom: 1px solid #fff;
color: #fff;

View file

@ -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">

View file

@ -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()): ?>

View file

@ -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