style page-single
All checks were successful
Deploy / Deploy to Production (push) Successful in 12s

This commit is contained in:
Julie Blanc 2026-02-24 17:42:51 +01:00
parent 7b3ebb3ca4
commit f61b6e8840
9 changed files with 264 additions and 140 deletions

View file

@ -1,6 +1,6 @@
<?php snippet('header') ?>
<main>
<main class="main__single">
<header class="page__header">
<p class="page__type">Impact</p>
@ -18,21 +18,22 @@
<?php if ($page->chapo()->isNotEmpty()): ?>
<p class="page__description"><?= $page->chapo()->inline() ?></p>
<?php endif ?>
<?php if ($cover = $page->cover()->toFile()): ?>
<figure class="page__cover">
<?php snippet('picture', ['file' => $cover]) ?>
</figure>
<?php endif ?>
</header>
<div class="page__content">
<?php if ($cover = $page->cover()->toFile()): ?>
<figure class="impact__cover">
<?php snippet('picture', ['file' => $cover]) ?>
</figure>
<?php endif ?>
<?php if ($page->body()->isNotEmpty()): ?>
<div class="impact__body">
<?= $page->body()->toBlocks() ?>
</div>
<?php endif ?>
<?php $investigations = $page->linkedInvestigations()->toPages() ?>