Skip to content

Commit 70798f3

Browse files
committed
Sidebar: Fix empty whitespace
1 parent 5b3d6a3 commit 70798f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

assets/css/v2/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,12 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
912912
padding: 0.25rem 0.75rem;
913913
}
914914

915+
/* handles bug in hugo where non-rendered headers cause empty li */
916+
/* https://github.com/gohugoio/hugo/issues/7128 */
917+
li:empty {
918+
display: none;
919+
}
920+
915921
li:first-child {
916922
padding-top: 0;
917923
}

0 commit comments

Comments
 (0)