{{ if .PrevInSection | or .NextInSection }} {{ $segments := split .RelPermalink "/" }} {{ $subsection := index $segments 2 }}