Add scribbles
All checks were successful
Deploy / deploy (push) Successful in 3s

This commit is contained in:
Marcel Kapfer 2025-01-31 22:04:40 +01:00
parent b36abcd3bf
commit 0d40b85f76
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
13 changed files with 232 additions and 58 deletions

View file

@ -9,6 +9,10 @@ return [
'pattern' => 'feed',
'action' => fn () => go('/blog.rss')
],
[
'pattern' => 'feed/scribbles',
'action' => fn () => go('/scribbles.rss')
],
[
'pattern' => 'index.xml',
'action' => fn () => go('/blog.rss')
@ -32,6 +36,15 @@ return [
'action' => function($tag) {
return page('blog')->render(['tag' => $tag]);
}
]
],
[
'pattern' => 'scribbles/(:num)/(:num)/(:num)-(:num)',
'action' => function ($year, $month, $day, $time) {
$path = $year . $month . $day . '-' . $time;
$page = page('scribbles/' . $path);
if (!$page) return site()->errorPage();
return site()->visit($page);
}
],
]
];