Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
modular pages, no menu links in hamburger navigation #421
This is not a bug, those links in the horizontal menu are an on-page menu that is generated by the modular sections. It really makes no sense to have those view in the 'mobile' menu because you are already on that page, just scroll!
However, if you did for some reason want them, you would have to make some edits.
First, you can see how the
You would have to put a block definition around the area where the slidebar nav is: https://github.com/getgrav/grav-theme-antimatter/blob/develop/templates/partials/base.html.twig#L81
And then override this too.
thanks for your answer and sorry for late reply. I see the usage when it comes to usability an seo.
Also for usability. Why should a user get a navigation on the desktop version and when he returns on a mobile device there is none? Thats confusing.
That's the implementation of the menu in the Antimatter theme and other themes that follow the same way of doing things. I don't think modular pages sections should go in the menu by default, but everyone has its own needs and you can tweak Grav to do what you want.
Themes in Grav have much more power than themes for other CMS, and you can customize any aspect of the site presentation by customizing the theme http://learn.getgrav.org/themes/customization#theme-inheritance.
In your case, this file provides the menu: https://github.com/getgrav/grav-theme-antimatter/blob/develop/templates/partials/navigation.html.twig