okkur / syna

Highly customizable open source theme for Hugo based static websites
https://syna.okkur.org/demo/
Apache License 2.0
251 stars 134 forks source link

[nav] Support dropdown menu if hasChildren #683

Closed data-henrik closed 4 years ago

data-henrik commented 4 years ago

Is this a BUG REPORT or FEATURE REQUEST?: feature

What happened: child menu is not shown

What you expected to happen: if child entries are present, generate dropdown menu How to reproduce it (as minimally and precisely as possible): add menu item with parent reference

Anything else we need to know?:

Environment:

stp-ip commented 4 years ago

Dropdown menus especially on mobile are problematic. Any specific ideas or inspiration examples for how you would like this to look?

data-henrik commented 4 years ago

No specifics, but could expand on hover. For mobile, child menu could be shown when expanding the burger (no dropdown).

mpourismaiel commented 4 years ago

Bootstrap's dropdown actually works pretty good on both mobile and desktop. I'm creating a PR which uses the dropdown, although I had to change our dropdown code to prevent title change in navbar as our previous code did.