Something about onpage_menu

Hi, everybody,

I tried onpage_menu, I like it, but I have some suggestions.

First, when I have a multipage, sometimes I like to have the menu item of only some of the pages.
I solved writing this in modular.html.twig:

 {% for module in page.collection() %}
    {% if != '@hide' %}
        {% set current_module = ( or module.activeChild) ? 'active' : '' %}
        <li class="{{ current_module }}"><a href="#{{ _self.pageLinkName( }}">{{ }}</a></li>
    {% endif %}
{% endfor %}

but would be better to add a directive in the subpage as:

title: My subpage
hidemenu: true

# my title
my text

Second, the onpage menu items are added at the end of other itens ie:

Home | page2 | page3 | subpage1 | subpage2

I think would be better to show onpage items near the main page:

Home | subpage1 | subpage2 | page2 | page3

Best regards and thanks.

You can use the visbible setting on a page as the intention of this is to hide an item from the menu. Then you can check this is not false. A PR would be welcome!