cncf / dot-org-hugo-theme

Hugo theme ideal for Organizations to use. Built initially for the TODO site redesign.
https://dot-org-hugo-theme-demo.netlify.app/
MIT License
43 stars 14 forks source link

Make breadcrumbs multi-level, semantic #43

Closed thetwopct closed 4 months ago

thetwopct commented 8 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>
thetwopct commented 4 months ago

Improved and released in https://github.com/cncf/dot-org-hugo-theme/releases/tag/v0.1.5