esl / code-beam-europe

0 stars 2 forks source link

Add drop-down submenu #5

Open annalisaantonioli opened 1 month ago

annalisaantonioli commented 1 month ago

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 commented 1 month ago

@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 commented 1 month ago

@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:

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

kamila-codesync commented 1 month ago

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