Add table of contents snippet and update menu config

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-09 14:26:46 +01:00
parent 706c1586da
commit 4740463979
2 changed files with 26 additions and 16 deletions

View file

@ -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'