dynamize inspirations header

This commit is contained in:
isUnknown 2024-09-10 10:59:31 +02:00
parent 0afb0dfe54
commit fceacaeed6
4 changed files with 28 additions and 12 deletions

View file

@ -10,7 +10,7 @@ Date: 2024-04-24
----
New: false
New: true
----

View file

@ -3,6 +3,8 @@
$collections = $page->children()->map(function ($child) {
return [
'title' => $child->title()->value(),
'new' => $child->new()->value() === "true" ? true : false,
'date' => $child->date()->toDate('Y-m-d'),
'url' => $child->url(),
'modified' => $child->modified('Y-m-d'),
'status' => $child->status(),