Closed thetwopct closed 4 months ago
Switch out and style current breadcrumb to be multi-level, semantic and add aria labels.
<nav class="" aria-label="breadcrumbs"> <ol class=""> {{- range .Ancestors.Reverse }} <li class="breadcrumb"> <a href="{{ .RelPermalink }}">{{ if .IsHome }}{{ i18n "home" }}{{ else }}{{ .Title }}{{ end }}</a> </li> <span class="" aria-hidden="true">»</span> {{- end }} </ol> </nav>
Improved and released in https://github.com/cncf/dot-org-hugo-theme/releases/tag/v0.1.5
Switch out and style current breadcrumb to be multi-level, semantic and add aria labels.