adjust styles
This commit is contained in:
parent
dd217e7a6a
commit
3804d13cb6
34 changed files with 756 additions and 174 deletions
25
site/config/routes/virtual-author.php
Normal file
25
site/config/routes/virtual-author.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?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(),
|
||||
]
|
||||
]
|
||||
);
|
||||
}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue