From ba94a6e5c8971caa8dc991ac1173e171cd540f4d Mon Sep 17 00:00:00 2001 From: Ricardo Date: Sun, 1 Feb 2026 14:50:44 +0100 Subject: [PATCH] feat: merge Activity into single "/" dropdown menu - All slash pages now under one "/" dropdown - Dynamic pages (from Indiekit) appear first - Activity feeds (github, listening, funkwhale, youtube, news) below divider - Remove standalone Activity dropdown and /news link - Add divider styles for desktop and mobile nav Co-Authored-By: Claude Opus 4.5 --- _includes/layouts/base.njk | 50 ++++++++++++-------------------------- css/tailwind.css | 8 ++++++ 2 files changed, 23 insertions(+), 35 deletions(-) diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 46a1c4c..235eb2d 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -112,7 +112,7 @@ Home About Now - {# Slash pages dropdown - dynamically populated from collections.pages #} + {# Slash pages dropdown - all root pages in one menu #} {# Blog dropdown #} @@ -147,22 +153,6 @@ Interactions - News - {# Activity dropdown #} - - - diff --git a/css/tailwind.css b/css/tailwind.css index ea9f4d7..3505ecd 100644 --- a/css/tailwind.css +++ b/css/tailwind.css @@ -90,6 +90,10 @@ @apply block px-4 py-2 text-sm text-surface-600 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-700 hover:text-primary-600 dark:hover:text-primary-400 no-underline; } + .nav-dropdown-divider { + @apply my-2 border-t border-surface-200 dark:border-surface-700; + } + /* Mobile menu toggle button */ .menu-toggle { @apply md:hidden p-2 rounded-lg text-surface-600 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-800 transition-colors; @@ -121,6 +125,10 @@ @apply pl-8 py-2 text-sm border-b-0; } + .mobile-nav-divider { + @apply my-2 mx-4 border-t border-surface-200 dark:border-surface-700; + } + /* Theme toggle button */ .theme-toggle { @apply p-2 rounded-lg text-surface-600 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-800 transition-colors;