This commit is contained in:
parent
b36abcd3bf
commit
0d40b85f76
13 changed files with 232 additions and 58 deletions
|
@ -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);
|
||||
}
|
||||
],
|
||||
]
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue