{{ if and (.Parent) (ne .Parent.RelPermalink "/") }} {{- $sectionPath := path.Base .Parent.File.Dir -}} {{ or .Parent.LinkTitle "Section" }} {{ end }}