From 47106441f798d35a78cf2d71194f7b31ace49f67 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Wed, 6 Apr 2022 17:49:25 -0700 Subject: [PATCH] Remove deprecated ARIA, unused classes --- layouts/partials/processed-content.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/partials/processed-content.html b/layouts/partials/processed-content.html index 5391f6c..125333e 100644 --- a/layouts/partials/processed-content.html +++ b/layouts/partials/processed-content.html @@ -3,12 +3,16 @@ {{ $references := `(

)` -}} {{ $heading := .Params.footnote_heading -}} -{{ $referencesWithHeading := printf `
+{{ $referencesWithHeading := printf `

%s

` ($heading) -}} {{ $endnote := `(role="doc-endnote")` }} {{ $noEndnote := printf "" }} -{{ .Content | replaceRE $references $referencesWithHeading | replaceRE $endnote $noEndnote | safeHTML -}} + +{{ $preWithTabIndex := `
` }}
+{{ $preWithoutTabIndex := `
` }}
+
+{{ .Content | replaceRE $references $referencesWithHeading | replaceRE $endnote $noEndnote | replaceRE $preWithTabIndex $preWithoutTabIndex | safeHTML -}}
 {{ else -}}
 {{ .Content -}}
 {{ end -}}