Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Show folders in navigation, modular subpages not

Started by Christoph 9 years ago · 3 replies · 1250 views
9 years ago

Hello,
I'd like to have this navigation menu (without modular onepage skeleton subpages):
01.modular-home (modular)
03.standard-page-3

02-standard-page-2 and the subpages of the 01.home skeleton should not be outputed in the navigation menu.

I'm using the onepage skelton from the big-picture theme
Can anyone help?

last edited 07/12/17 by Christoph
9 years ago

Are you using the Antimatter theme? You could try adding the following to the 01.home page (assuming this page uses modular content) frontmatter:

TXT
onpage_menu: false
9 years ago

I'm using the big-picture one-page skeleton

I have inserted it but can't get it to work with the frontmatter code. I ve set it on top of the modular.de.md file in the 01.home folder but it doesn't take any effect.

I also read https://github.com/getgrav/grav-plugin-admin/issues/72

I would just like to reduce the amounts of entries in the navigation menu because big-picture theme doesn't have the responsive design "hamburger", so the entries overflow (even faster on little screens of course).

At the moment I use #nav {display:none;}

I've contacted the contributer of the theme.
https://github.com/tranduyhung/grav-skeleton-big-picture/issues/3

last edited 07/12/17 by Christoph
9 years ago

You have to change this in template file header.html.twig

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 1 week ago
4 157 6 days ago
Support · by nwhitfield, 1 week ago
2 136 1 week ago
Support · by stell, 3 weeks ago
5 369 2 weeks ago
Support · by gravinator, 1 month ago
5 559 2 weeks ago
Support · by Gravver, 3 weeks ago
6 347 3 weeks ago