     {{- if and (strings.HasPrefix $path $prefix) (strings.HasPrefix $suffix "/") }}
            {{- with or
              (.GetPage $suffix)
              (.GetPage (strings.TrimRight "/" $suffix))
              (.Resources.Get $suffix)
              (resources.Get $suffix)
            }}
              {{- $linkPage = . }}
              {{- break }}
            {{- end }}
          {{- end }}
        {{- end }}
      {{- end }}
    {{- end }}
  {{- else }}
    {{- $linkPage = $page.Page }}
  {{- end }}
  {