add author page

This commit is contained in:
isUnknown 2024-03-09 17:06:24 +01:00
parent 2114fbbb8e
commit f9397935bd
4 changed files with 26 additions and 18 deletions

View file

@ -49,7 +49,7 @@ return [
],
'routes' => [
[
'pattern' => 'auteur/(:any)',
'pattern' => 'auteurs/(:any)',
'action' => function ($slug) {
$kirby = kirby();
$author = getAuthorBySlug($slug);
@ -61,6 +61,7 @@ return [
'content' => [
'title' => $author->name(),
'presentation' => $author->presentation(),
'author' => $author->name(),
'uuid' => Uuid::generate(),
]
]);