Add table of contents snippet and update menu config
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
706c1586da
commit
4740463979
2 changed files with 26 additions and 16 deletions
|
|
@ -2,22 +2,13 @@
|
|||
|
||||
return [
|
||||
'home' => [
|
||||
'label' => 'Soutien',
|
||||
'icon' => 'money',
|
||||
'link' => 'pages/soutien',
|
||||
'current' => function ($current) {
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'pages/soutien');
|
||||
},
|
||||
],
|
||||
'shop' => [
|
||||
'label' => 'Boutique',
|
||||
'icon' => 'cart',
|
||||
'link' => 'pages/boutique',
|
||||
'current' => function ($current) {
|
||||
$path = Kirby::instance()->request()->path()->toString();
|
||||
return Str::contains($path, 'pages/boutique');
|
||||
},
|
||||
'label' => 'Dashboard',
|
||||
'icon' => 'bolt',
|
||||
'link' => '/',
|
||||
'current' => function (string $current): bool {
|
||||
$path = Kirby\Cms\App::instance()->path();
|
||||
return Str::contains($path, '/site');
|
||||
}
|
||||
],
|
||||
'-',
|
||||
'users'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue