Perf: optimisation vidéos page expertise
All checks were successful
Deploy / Deploy to Production (push) Successful in 21s
All checks were successful
Deploy / Deploy to Production (push) Successful in 21s
- Vidéos recompressées (CRF 23, faststart) : 13MB → 3.4MB et 3.7MB - Champs Kirby dynamiques pour vidéo normale et inverse - Sources dynamiques via data.backgroundVideo / data.backgroundVideoReverse Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
84744cd4a3
commit
3a2b5a2f57
5 changed files with 40 additions and 4 deletions
|
|
@ -1,8 +1,10 @@
|
|||
<?php
|
||||
|
||||
$specificData = [
|
||||
'pageTitle' => $page->writer()->value(),
|
||||
'items' => $page->body()->toBlocks()->filter(fn($b) => $b->type() === 'text')->map(fn($block) => [
|
||||
'pageTitle' => $page->writer()->value(),
|
||||
'backgroundVideo' => $page->backgroundVideo()->toFile()?->url(),
|
||||
'backgroundVideoReverse' => $page->backgroundVideoReverse()->toFile()?->url(),
|
||||
'items' => $page->body()->toBlocks()->filter(fn($b) => $b->type() === 'text')->map(fn($block) => [
|
||||
'text' => $block->text()->value()
|
||||
])->values()
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue