From 4f1fcc2d8e3204d15cec6b92466bcef349890b14 Mon Sep 17 00:00:00 2001 From: Jack Hickey <133868041+nginx-jack@users.noreply.github.com> Date: Wed, 14 May 2025 11:30:35 +0100 Subject: [PATCH] Sidebar: Fix empty whitespace --- assets/css/v2/style.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/css/v2/style.css b/assets/css/v2/style.css index 27f89c9..e152fca 100644 --- a/assets/css/v2/style.css +++ b/assets/css/v2/style.css @@ -912,6 +912,12 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon { padding: 0.25rem 0.75rem; } + /* handles bug in hugo where non-rendered headers cause empty li */ + /* https://github.com/gohugoio/hugo/issues/7128 */ + li:empty { + display: none; + } + li:first-child { padding-top: 0; }