Feat: header article avec date + boutons de partage, share section bas de page, golden-grid conditionnel
All checks were successful
Deploy / Deploy to Production (push) Successful in 18s
All checks were successful
Deploy / Deploy to Production (push) Successful in 18s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b9631b8c53
commit
3c5b4f76dd
10 changed files with 178 additions and 28 deletions
|
|
@ -6,7 +6,7 @@ if ($related->isEmpty()) {
|
|||
}
|
||||
|
||||
$specificData = [
|
||||
'date' => $page->date()->toDate('d/m/Y'),
|
||||
'published' => $page->published()->toDate('d/m/Y'),
|
||||
'intro' => $page->intro()->value(),
|
||||
'cover' => $page->cover()->toFile()?->url(),
|
||||
'body' => (string) $page->body()->toBlocks(),
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ $mapArticle = function($article) {
|
|||
return [
|
||||
'title' => $article->title()->value(),
|
||||
'slug' => $article->slug(),
|
||||
'date' => $article->published()->toDate('d/m/Y'),
|
||||
'published' => $article->published()->toDate('d/m/Y'),
|
||||
'intro' => $article->intro()->value(),
|
||||
'cover' => $article->cover()->toFile()?->url(),
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue