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

@ -18,7 +18,8 @@
'left' => [
'label' => 'Présentation',
'content' => $page->presentation()
]
],
'authorFilter' => $page->author()
]) ?>
</article>
</main>

View file

@ -11,7 +11,7 @@
<article>
<div class="article-header">
<h1 class="main-title title-center <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h1>
<p>Par <a href="/auteur/<?= Str::slug($page->author()->toUser()->name()) ?>" title="Voir les articles d'<?= $page->author()->toUser()->name() ?>"><?= $page->author()->toUser()->name() ?></a></p>
<p><span class="opacity" style="--opacity:.5">par</span> <a class="author no-line" href="/auteurs/<?= Str::slug($page->author()->toUser()->name()) ?>" title="Voir les articles d'<?= $page->author()->toUser()->name() ?>"><?= $page->author()->toUser()->name() ?></a></p>
</div>
<?php snippet('tabs', [
'left' => [