Hi,
I have something like this
<section>
<h2>more articles</h2>
<ul>
{{ $act_section := .Section}}
{{ range where .Site.Pages "Section" $act_section }}
<li><a href="{{ .RelPermalink }}">{{- .LinkTitle -}}</a></li>
{{ end }}
</ul>
</section>
to create a menu for all pages within a section - this will be redered as a sidemenu on each page.
Now if I have one single page within that section which I would like to exclude from the menu - how could I do that?
This single page should only be acessible from one of the other pages (e. g. you have a guestbook (I know, old stuff ) and the page to create a new entry should only be accessible from the guestbook itself, not from the other pages in that e. g. “contact” section which also includes those pages like impressum, data privacy, contact form etc.).