mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 21:04:39 -04:00
Breadcrumb example: add basic accessibility (#1832)
Add `aria-current="page"` for screen readers for the bredcrumb example.
This commit is contained in:
parent
6cffff87a2
commit
e9d72bcdab
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user