alshedivat / al-folio

A beautiful, simple, clean, and responsive Jekyll theme for academics
https://alshedivat.github.io/al-folio/
MIT License
11.19k stars 11.24k forks source link

sub-menus? #159

Closed CarlosGrohmann closed 3 years ago

CarlosGrohmann commented 3 years ago

Is there any way to get sub-menus on the top navbar with al-folio? Something similar to what Beautiful Jekyll offers, where one can hover the menu and the sub-menus will drop down. Thanks

alshedivat commented 3 years ago

@CarlosGrohmann, thanks for the suggestion. As of now, the theme does not support sub-menus. This is partly because we assume that all pages are on the same "level" (i.e., we do not allow some pages to be sub-pages of other pages).

Adding sub-menus would require assuming a hierarchical structure of the pages (e.g., we can assign each page a parent; for the upper-level pages, the parent will be set root or something like that).

If there is a strong use case for this, I'll consider adding this enhancement in a later version of al-folio, or someone from the community could perhaps implement it and send a PR faster.

CarlosGrohmann commented 3 years ago

Ok Thanks!

alshedivat commented 3 years ago

I'll keep this issue open as a feature request.

riddhimanadib commented 3 years ago

I was also looking for this feature to add to my website. I have added a PR, hope this helps!