hugo-theme-learn
hugo-theme-learn copied to clipboard
Fixing dangling <ul> when no pages or subsections are shown within the submenu
Hi,
I realized that when you only have hidden pages or subsections in your menu, the html tag
- will still be created with nothing inside. This causes a space to be added for submenus, but since they are hidden, nothing else is inside that space.
Here is an image of what I mean.
I have added a variable to check if all the pages or sections are hidden. if so, then it would not try to render a submenu.
Let me know if this works.
Any chance you can consider this PR?
Should I close this PR? It has conflicts now and it has been over a year I submitted it.
Does this bug still exist? Then keep it, fix the conflicts (should not be too difficult) and mark matalo to check this PR.