te-fragment.html" $ctx }}
      {{- $href = printf "%s#%s" $href . }}
    {{- end }}
  {{- else }}
    {{- if eq $errorlevel "warning" }}
      {{- warnf "%q: link '%s' is not a page or a resource but linked anyways" $page.File.Filename .url }}
    {{- else if eq $errorlevel "error" }}
      {{- errorf "%q: link '%s' is not a page or a resource" $page.File.Filename .url }}
    {{- end }}
  {{- end }}
{{- end }}
{{- $attributes = $attributes | merge (dict "href" $href) -}}
<a
  {{- range $k, $v := $attribute