[title, icon (optional), show_in_nav] $MENU = [ 'home' => ['title' => 'Home', 'icon' => '🏠', 'nav' => true], 'about' => ['title' => 'About', 'icon' => '📖', 'nav' => true], 'projects' => ['title' => 'Projects', 'icon' => '🚀', 'nav' => true], 'tools' => ['title' => 'Tools', 'icon' => '🛠️', 'nav' => true], 'team' => ['title' => 'Team', 'icon' => '👥', 'nav' => true], 'decisions' => ['title' => 'Decisions', 'icon' => '✅', 'nav' => true], ]; // --- Content Mapping --- // slug => markdown file (relative to CONTENT_DIR) or null for PHP-only pages $CONTENT_MAP = [ 'home' => null, 'about' => 'about.md', 'projects' => 'projects.md', 'tools' => 'tools.md', 'team' => null, 'decisions' => 'decisions.md', ]; // --- Page Titles (for tag) --- function page_title(string $slug): string { global $MENU; $page = $MENU[$slug]['title'] ?? '404'; return ($slug === 'home') ? SITE_TITLE . ' — ' . SITE_DESCRIPTION : $page . ' — ' . SITE_TITLE; }