Antimatter navigation

Hello there,

i am just try to figure out how, to build a navigation. There is one thing i dont understand. In the navigation.html.twig of the antimatter theme there is a loop through the page collection like

{% for p in page.children.visible %}

And after that, there is a second loop using the site object. Like this one:

{% for mitem in %}

But why is this extra loop needed?

Thanks is advance.

The second loop is for constructing a list of custom menu items (which is optional). You can learn more about custom menu items with Antimatter at

1 Like

thank u very much. i checked that link and i discovered another great feature of grav :wink:

1 Like