summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/toc.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html
index 68d5091..c873bdb 100644
--- a/layouts/partials/toc.html
+++ b/layouts/partials/toc.html
@@ -62,10 +62,10 @@
{{- end -}}
{{- end -}}
<li>
- <a href="#{{- $cleanedID -}}">{{- $header | safeHTML -}}</a>
+ <a href="#{{- $cleanedID -}}" aria-label="{{- $header | plainify -}}">{{- $header | safeHTML -}}</a>
{{- else -}}
<li>
- <a href="#{{- $cleanedID -}}">{{- $header | safeHTML -}}</a>
+ <a href="#{{- $cleanedID -}}" aria-label="{{- $header | plainify -}}">{{- $header | safeHTML -}}</a>
{{- end -}}
{{- end -}}
<!-- {{- $firstHeaderLevel := len (seq (index (findRE "[1-6]" (index $headers 0) 1) 0)) -}} -->
@@ -81,4 +81,4 @@
{{- end -}}
{{- end -}}
</ul>
-{{- end -}} \ No newline at end of file
+{{- end -}}