add author page
This commit is contained in:
parent
2114fbbb8e
commit
f9397935bd
4 changed files with 26 additions and 18 deletions
|
|
@ -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(),
|
||||
]
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue