Menu items appearing that are marked with visible: false

I have followed the documentation about menus, but it seems there is something that I’m missing here. The articles that I don’t want to appear in the horizontal drop down, I put visible: false in the frontmatter of the page, I also made sure that visible was unchecked for each page I didn’t want to appear in the horizontal drop down at the top of the page. But those pages still appear

Trial and error – figured it out. I don’t know if this is the right way to do it, but it worked:


{% if page.menu == ‘About’ or page.menu == ‘Intro’ %}

{% endif %}