Jekyll hide page from navigation

Out of all the ways I’ve found and described here, this is so far the cleanest one.

title: Some Title
layout: default
exclude: true

and then

 {% unless page.exclude %}
        <a class="page-link" href="{{ page.url | prepend: site.baseurl }}">
            {{ page.title }}
        </a>
    {% endunless %}