Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to create a drop-down menu? #25

Closed
antoinemeyer5 opened this issue Apr 27, 2023 · 4 comments
Closed

Is it possible to create a drop-down menu? #25

antoinemeyer5 opened this issue Apr 27, 2023 · 4 comments

Comments

@antoinemeyer5
Copy link

Hi,
I use your theme and it's great!

I have a question:

  • Can we create drop down menus natively?
  • If not, can we fork your project and try to add that?
  • Is it complicated to do?

I take the architecture of your site as an example.
The idea would be to have a drop down menu when I hover over "Content".
Underneath, "Markdown Syntax Guide", "Rich Content", "Placeholder Text", etc. would appear.
Of course we could say which articles we want or don't want to see in the drop-down menu.
The "Content" page would still exist and be clickable.

Thank you in advance for your answer,
Code-dially

@antoinemeyer5 antoinemeyer5 changed the title Create a dropdown menu Is it possible to create a drop-down menu? Apr 27, 2023
@willfaught
Copy link
Owner

Hi @antoinemeyer5, it's not currently possible in Paige, but I assume it's technically possible to add it. I haven't looked into whether Hugo can do hierarchical menus, but assuming it can, then I imagine it would be straightforward to map that onto Bootstrap dropdown menus in a nav/navbar. A complication might be getting it to work on mobile. See menu.html for how the menu is implemented.

Feel free to submit a PR. The general approach in Paige has been to use stock Bootstrap styles and widgets as much as possible.

@willfaught
Copy link
Owner

willfaught commented Apr 27, 2023

I use your theme and it's great!

Links to deployed sites are encouraged! :) See #12

@willfaught
Copy link
Owner

Looks like it would need to be this: https://getbootstrap.com/docs/5.3/components/navs-tabs/#pills-with-dropdowns

@willfaught
Copy link
Owner

Repository owner locked and limited conversation to collaborators May 3, 2023
@willfaught willfaught converted this issue into discussion #26 May 3, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants