mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-09-25 01:53:03 +02:00
feat: add custom 404 page rendered via the site layout
This commit is contained in:
@@ -70,7 +70,12 @@ class Dispatcher
|
||||
$route = $this->matchRoute();
|
||||
if (!$route) {
|
||||
http_response_code(404);
|
||||
echo '<h1>404 — Page non trouvée</h1>';
|
||||
$this->render('public/not-found', [
|
||||
'pageTitle' => 'Page non trouvée',
|
||||
'metaDescription' => '',
|
||||
'bodyClass' => 'page-not-found',
|
||||
'extraCss' => ['/assets/dist/not-found.min.css'],
|
||||
]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user