Environment
Problem
I am generating multiple layers of pages from a json file with a content adapter. Every section page has links for all the various pages created with the content adapter. I worked around this by adding this filter to section-index. It is because the File for any page generated by content adapters is _content.gotmpl
{{ if eq $page.File.LogicalName "_content.gotmpl" }}
{{ $pages = (where $pages "Parent.Path" "==" $page.Path) -}}
{{ end }}