 {{ $filename := .File.BaseFileName }}
      {{ $normalizedTarget := $target }}
      
      <!-- Handle both space and hyphen variations -->
      {{ $filename = replace $filename "-" " " }}
      {{ if strings.Contains $target "-" }}
        {{ $normalizedTarget = replace $target "-" " " }}
      {{ end }}
      
      {{ if eq (lower $filename) (lower $normalizedTarget) }}
        {{ $found = true }}
        {{ $matchedPage = . }}
        {{ break }}
      {{ end }}
    {{ end }}
  {{ end }}
  
  <!-- Tr