I like the way my site is looking - especially on a desktop, but on a phone, the menu above takes a lot of space. Does anyone know a way to collapse that into one of those collapsible menu icons on the top right (the kind with horizontal lines)?
This would be done with a combination of JS and CSS and isn’t necessarily Hugo specific. Somebody may be able to help you on the forums if you share your source code:)
Another option that would be very helpful for me would be to just display the icons in the menu bar, but not the text. That would free up a ton of space. Can that easily be done?
I can leave one text label blank, and it works, but I cannot have more than one blank label. If I have one more than one blank label, the icons start disappearing.
Could I have two of these Navbars? One on top for pages of my blog and one on the bottom above the attribution for social links? Is there a simple code I can put down there and then use the same menu structure?
What you want is possible. I’ll let you figure it out though since this is beyond the scope of normal theme questions, and it’ll be a good hugo learning experience for you
I’ll give some hints since I’m feeling generous.
(1) Create another menu in your config file. Let’s say instead of nav it’s named social
(2) In the theme’s footer partial, copy the same menu-related code from the nav partial, but instead of
It works, I can get the second menu and configure it just fine, but the top menu disappears the moment I put in the second menu. I can’t seem to figure out how to prevent that from happening.
There’s one additional tweak I’d like to make, but can’t figure out. There’s more space at the bottom of the post/article/page/etc. than there is a the top. Is there an easy way to shrink that space just a tad?