Skip to content

Commit

Permalink
Remove ARIA attributes from taxonomy lists
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Jun 24, 2022
1 parent 8182e7f commit 11dd63d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions layouts/_default/taxonomy.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ <h1>{{ with .Data.Singular }}{{ . | humanize }}: {{ end }}<span>{{ .Title }}</sp
{{ $manualLink := cond (isset .Params "manuallink") .Params.manualLink ( cond (isset .Params "manuallinkrelref") (relref . .Params.manualLinkRelref) .RelPermalink) }}
<article class="card article-teaser article-type-{{ with .Type }}{{ ( urlize . ) }}{{ end }}">
<h3><a href="{{ $manualLink }}"{{ with .Params.manualLinkTitle }} title="{{ . }}"{{ end }}{{ with .Params.manualLinkTarget }} target="{{ . }}"{{ if eq . "_blank" }} rel="noopener"{{ end }}{{ end }}>{{- .Title -}}</a></h3>
{{ if not .Site.Params.ui.taxonomy_breadcrumb_disable }}
{{- partial "breadcrumb.html" . -}}
{{ end }}
{{ if not .Site.Params.ui.taxonomy_breadcrumb_disable -}}
{{ partial "breadcrumb.html" .
| replaceRE ` aria-\w+=\".*?\"|(breadcrumb-item) active|(btn-link) disabled` "$1" | safeHTML
-}}
{{ end -}}
<p>{{ .Description | markdownify }}</p>
<header class="article-meta">
{{ partial "taxonomy_terms_article_wrapper.html" . }}
Expand Down

0 comments on commit 11dd63d

Please sign in to comment.