Skip to content
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

Add drop-down submenu #5

Open
annalisaantonioli opened this issue Jul 11, 2024 · 3 comments
Open

Add drop-down submenu #5

annalisaantonioli opened this issue Jul 11, 2024 · 3 comments
Assignees

Comments

@annalisaantonioli
Copy link
Collaborator

annalisaantonioli commented Jul 11, 2024

is it possible to add in the menu a dropdown submenu? If I want for example to make a "Join us" part of the menu with links to Diversity and Students as linked sections.

@annalisaantonioli annalisaantonioli self-assigned this Jul 11, 2024
@annalisaantonioli annalisaantonioli changed the title Add dropd-down submenu Add drop-down submenu Jul 11, 2024
@annalisaantonioli
Copy link
Collaborator Author

@kamila-codesync To show submenu you'll have to go to navigation.yml file and add/edit items to have children. You can see a commented example on lines 47 to 51. "link" of the parent should be empty (can even be removed) and children will have name and link.

@kamila-codesync
Copy link
Collaborator

@annalisaantonioli I tried, all runs failed. Probably wrong indentation, I can't figure it out.
Can you add it yourself, please? And then I can take a look how it should be indented.
It would be:
Join us:

  • Volunteer
    "volunteer"
  • Diversity Programme
    "diversity"
  • Student Programme
    "student"

And with that drop-down on, you can comment diversity and student from the main menu.

@kamila-codesync
Copy link
Collaborator

Karol figured out where I've added/left the wrong indentation, but I'm still not sure how it should look for it to work with drop down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants