 := "" }}
  
  <!-- Try title match first if configured -->
  {{ if not $page.Site.Params.wikilinks.matchFilename }}
    {{ range where $page.Site.RegularPages "Section" "notes" }}
      {{ if eq (lower .Title) (lower $target) }}
        {{ $found = true }}
        {{ $matchedPage = . }}
        {{ break }}
      {{ end }}
    {{ end }}
  {{ end }}
  
  <!-- Try filename match if title match failed or is disabled -->
  {{ if not $found }}
    {{ range where $page.Site.RegularPages "Section" "notes" }}
     