Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/docsy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Chalin <chalin@users.noreply.github.com>2022-06-24 12:15:43 +0300
committerGitHub <noreply@github.com>2022-06-24 12:15:43 +0300
commit1aa065f731db75b8d997ae89078653825923a7ed (patch)
tree3e3de009c6e3e70110111da6f08fe9e582103c18
parentecd4be87ea48e8e94684e32c925049e9bdf7f127 (diff)
Breadcrumbs: restore Aria attribute and link (#1068)
-rw-r--r--layouts/partials/breadcrumb.html13
1 files changed, 7 insertions, 6 deletions
diff --git a/layouts/partials/breadcrumb.html b/layouts/partials/breadcrumb.html
index 9479fd4..38aa7c3 100644
--- a/layouts/partials/breadcrumb.html
+++ b/layouts/partials/breadcrumb.html
@@ -18,11 +18,12 @@
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) -}}
{{ end -}}
{{ $isActive := eq .p1 .p2 }}
- <li class="breadcrumb-item{{ if $isActive }} active{{ end }}">
- {{- if $isActive }}
- <span>{{ .p1.LinkTitle }}</span>
- {{ else -}}
- <a href="{{ .p1.Permalink }}">{{ .p1.LinkTitle }}</a>
- {{ end -}}
+ <li class="breadcrumb-item{{ if $isActive }} active{{ end }}"
+ {{- if $isActive }} aria-current="page"{{ end }}>
+ <a href="{{ .p1.Permalink }}"
+ {{- if $isActive }} aria-disabled="true" class="btn-link disabled"{{ end -}}
+ >
+ {{- .p1.LinkTitle -}}
+ </a>
</li>
{{- end -}}