Page ListChildren with hidden in navigation filter in sightly
Hi
I am using the below code snipped to iterate over my pages and list out the children
<template data-sly-template.descendants="${@ page}">
${page.title}
<ul data-sly-list.child="${page.listChildren}">
<li data-sly-call="${descendants @ page=child}"></li>
</ul>
</template><div data-sly-call="${descendants @ page=currentPage}" data-sly-unwrap></div>
But ${page.listChildren} gives all the pages including the pages that are hidden in the Navigation too,
is there way to filter the pages that are hidden in navigation with in Sightly?
Please help