Hide menu item from menu

I am not using a theme. I tried this example you shared but got this error .execute of template failed: template: partials/navigation.html:4:28: executing "partials/navigation.html" at <.Pages.IsHome>: can't evaluate field Pages in type *navigation.MenuEntry I have no taxonomies defined and all folders are in the root of content content/section/abcd.md. This is a better solution if you can help me get it to work.

it works when I remove {{ else if and (not .Page.IsHome) (in .Page.Pages $currentPage) }} <li class="active"> <a href="{{ .URL }}">{{ .Name }} (active b)</a> </li>}. Impressive!