This commit is contained in:
isUnknown 2025-01-26 13:00:50 +01:00
parent 6801286c5f
commit aea050f6cc
8 changed files with 36 additions and 73 deletions

View file

@ -1,25 +0,0 @@
<?php
use Kirby\Uuid\Uuid;
return [
'pattern' => 'auteurs/(:any)',
'action' => function ($slug) {
$kirby = kirby();
$author = getAuthorBySlug($slug);
return Page::factory(
[
'slug' => '',
'template' => 'author',
'model' => 'authors',
'content' => [
'title' => $author->name(),
'presentation' => $author->presentation(),
'author' => $author->name(),
'uuid' => Uuid::generate(),
]
]
);
}
];