y alias match if other matches failed -->
  {{ if and (not $found) $page.Site.Params.wikilinks.enableAliases }}
    {{ range where $page.Site.RegularPages "Section" "notes" }}
      {{ with .Params.aliases }}
        {{ range . }}
          {{ if eq (lower (trim . " ")) (lower $target) }}
            {{ $found = true }}
            {{ $matchedPage = $ }}
            {{ break }}
          {{ end }}
        {{ end }}
      {{ end }}
    {{ end }}
  {{ end }}
  
  {{ $replacement := "" }}
  {{ if $found }}
   