From 97b376b3320a785624fbf893588d5fa3bd87bdf5 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Mon, 1 Aug 2022 11:18:33 -0400 Subject: [PATCH] Explain purpose of the replaceRE --- layouts/_default/taxonomy.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 8371bd7b2..420efd230 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -11,6 +11,7 @@

{{ with .Data.Singular }}{{ . | humanize }}: {{ end }}{{ .Title }}

{{- .Title -}}

{{ if not .Site.Params.ui.taxonomy_breadcrumb_disable -}} + {{/* Use breadcrumb partial, but remove attributes that are invalid or inappropriate in this page-summary context. */ -}} {{ partial "breadcrumb.html" . | replaceRE ` aria-\w+=\".*?\"|(breadcrumb-item) active|(btn-link) disabled` "$1" | safeHTML -}}