#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

@ -46,4 +46,7 @@ return [
'ticketingUrl' => 'https://cdn-besancon.mapado.com/',
'tobimori.seo.canonicalBase' => 'https://ntbesancon.fr',
'tobimori.seo.lang' => 'fr_FR',
'tobimori.seo.sitemap' => [
'excludeTemplates' => ['season', 'section'],
]
];

View file

@ -1,17 +1,32 @@
<header class="main-header">
<nav class="main-nav" aria-label="main-menu">
<a href="/" title="Aller à l'accueil">
<h1 class="logo">
<span>
Nouveau
</span>
<span>
Théâtre
</span>
<span>
Besançon
</span>
</h1>
<?php if ($page->isHomePage()): ?>
<h1 class="logo">
<span>
Nouveau
</span>
<span>
Théâtre
</span>
<span>
Besançon
</span>
</h1>
<?php else: ?>
<h2 class="logo">
<span>
Nouveau
</span>
<span>
Théâtre
</span>
<span>
Besançon
</span>
</h2>
<?php endif ?>
</a>
<div class="main-nav__right">
<ul class="main-nav__featured-pages">

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()])