Breadcrumb example: add basic accessibility (#1832)

Add `aria-current="page"` for screen readers for the bredcrumb example.
This commit is contained in:
JB 2022-10-05 03:20:44 +02:00 committed by GitHub
parent 6cffff87a2
commit e9d72bcdab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ With the available [section variables and methods](#section-page-variables-and-m
{{ else if not .p1.IsHome }}
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
{{ end }}
<li{{ if eq .p1 .p2 }} class="active"{{ end }}>
<li{{ if eq .p1 .p2 }} class="active" aria-current="page" {{ end }}>
<a href="{{ .p1.Permalink }}">{{ .p1.Title }}</a>
</li>
{{ end }}