Add Project view and templates

This commit is contained in:
Timothée Goguely 2024-09-17 17:21:43 +02:00
parent 1089938956
commit f7e7c24164
3 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<?php
$project = [
'title' => $page->title()->value(),
'url' => $page->url(),
'modified' => $page->modified('Y-MM-d'),
'status' => $page->status(),
'logo' => $page->client()->toPage()->logo()->toFile()->url()
];
$data = array_merge($genericData, $project);
echo json_encode($data);

View file

@ -0,0 +1 @@
<?php snippet('generic-template') ?>