add search page

This commit is contained in:
isUnknown 2024-09-12 14:57:54 +02:00
parent 47b8fe07e1
commit e505bb4289
7 changed files with 85 additions and 2 deletions

View file

@ -0,0 +1,14 @@
<?php
return function ($site) {
$query = get('q');
$allEvents = page('programme')->children()->children();
$results = $allEvents->search($query, 'title|text');
return [
'query' => $query,
'results' => $results,
];
};