Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Update Navbar to handle Hugo Children #101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Lnaden
Copy link

@Lnaden Lnaden commented Apr 4, 2020

This enables the header's Navbar to take advantage of the Hugo config.* files' menu.menu child/parent relations. I added a simple static carat for the dropdowns as well since this is using bootstrap 3. As I understand, bootstrap 4 adds the carat automatically, not really sure though.

The appearance of the dropdown menu isn't great, but I don't know CSS really, so I'm not sure how to clean this up. Feel free to make suggestions or edit yourself if you want.

This may fall outside of the scope of what this repo's vision is for minimal, but I wanted to propose it anyways so it ha the option to use more Hugo features.

Lnaden added 2 commits April 4, 2020 11:11
This enables the header's Navbar to take advantage of the Hugo `config.*` files' `menu.menu` child/parent relations. I added a simple static carat for the dropdowns as well since this is using bootstrap 3. As
I understand, bootstrap 4 adds the carat automatically, not really sure though.

The appearance of the dropdown menu isn't great, but I don't know CSS really, so I'm not sure how to clean this up. Feel free to make suggestions or edit yourself if you want.

This may fall outside of the scope of what this repo's vision is for minimal, but I wanted to propose it anyways so it ha the option to use more Hugo features.
@Lnaden
Copy link
Author

Lnaden commented Apr 6, 2020

I made a change which makes the menu actually look correctly now by making it a ul instead of a div class. The items now correctly list in a vertical stack as well.

@yli110-stat697
Copy link

Hi @Lnaden and @calintat This is exactly something I was looking for! And I just copied @Lnaden 's code to have my own header.html and I got what I wanted! Thank you!!

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

Successfully merging this pull request may close these issues.

2 participants