you can add a logic in sightly to test if hideInNav value is selected or not for the condition to create an item list.
Be default currentPage.listChildren will list all the child pages.
may be some thing like this with data-sly-test
<div data-sly-test="${item.hideInNav == 'false' }"><a class="sec-n...