#12 - add h1 to event page + exclude empty pages from sitemap

This commit is contained in:
isUnknown 2024-10-31 16:43:52 +01:00
parent ee1e020b7e
commit 602acd8c75
4 changed files with 31 additions and 12 deletions

View file

@ -24,7 +24,7 @@
<button class="swiper-button swiper-button-next" title="suivante"></button>
</div>
<div class="presentation__text">
<h2 class="h1 presentation__title"><?= $page->title() ?></h2>
<h1 class="presentation__title"><?= $page->title() ?></h1>
<h3 class="h2 presentation__authors"><?= $page->authors() ?></h3>
<div class="presentation__chapo"><?= $page->chapo() ?></div>
<div class="presentation__description"><?= $page->description() ?></div>

View file

@ -48,6 +48,7 @@
</section>
<?php snippet('calendar-strip') ?>
<?php if ($site->events()->isNotEmpty()): ?>
<?php
snippet('events-grid', ['title' => 'Prochainement', 'events' => $site->events()->toPages(), 'columns' => $site->events()->toPages()->count() === 1 ? 2 : $site->events()->toPages()->count()])