diff --git a/site/snippets/blocks/heading.php b/site/snippets/blocks/heading.php new file mode 100644 index 0000000..f2d61fd --- /dev/null +++ b/site/snippets/blocks/heading.php @@ -0,0 +1,4 @@ +level()->or('h2'); +?> +<>text() ?>> diff --git a/site/snippets/blocks/image.php b/site/snippets/blocks/image.php new file mode 100644 index 0000000..ec2beee --- /dev/null +++ b/site/snippets/blocks/image.php @@ -0,0 +1,8 @@ +image()->toFile()): ?> +
+ <?= $block->alt()->or($image->alt()) ?> + caption()->isNotEmpty()): ?> +
caption() ?>
+ +
+ diff --git a/site/snippets/blocks/text.php b/site/snippets/blocks/text.php new file mode 100644 index 0000000..c0078c3 --- /dev/null +++ b/site/snippets/blocks/text.php @@ -0,0 +1 @@ +text() ?> diff --git a/site/templates/investigation-summary.php b/site/templates/investigation-summary.php index 9b8b879..f8b5e09 100644 --- a/site/templates/investigation-summary.php +++ b/site/templates/investigation-summary.php @@ -120,7 +120,15 @@ body()->isNotEmpty()): ?>

Synthèse

- body()->toLayouts() ?> + body()->toLayouts() as $layout): ?> +
+ columns() as $column): ?> +
+ blocks() ?> +
+ +
+