Update blueprints for multilingual support

- Extract investigations field to separate file for reusability
- Fix investigations query to work with multilingual pages
- Use site.find() instead of page() for multilingual compatibility

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-09 14:26:42 +01:00
parent 73099b53d9
commit 9c874f0af1
3 changed files with 15 additions and 14 deletions

View file

@ -0,0 +1,9 @@
label: Enquêtes
type: pages
parent: page('enquetes')
layout: cards
text: "{{ page.title }}, {{ page.subtitle }}"
info: "{{ page.incidentConsequences }} à {{ page.incidentLocation }}"
image:
cover: true
ratio: 16/9

View file

@ -4,14 +4,4 @@ tabs:
contentTab:
label: Contenu
sections:
investigations:
type: pages
text: "{{ page.title }}, {{ page.subtitle }}"
info: "{{ page.incidentConsequences }} à {{ page.incidentLocation }}"
layout: cards
size: huge
search: true
image:
cover: true
ratio: 12/7
template: investigation-summary
investigations: fields/investigations

View file

@ -1,5 +1,7 @@
title: Site
sections:
pages:
type: pages
tabs:
contentTab:
label: Contenu
sections:
investigations: fields/investigations