{{ $currentSection := .CurrentSection }} {{ range where .Site.RegularPages.ByWeight "Section" .Section }} {{ if in (.Permalink | string) $currentSection.RelPermalink }}
{{ end }} {{ end }}