From 5e2ff37e94d1229ab801a7f2ef3aef3513726127 Mon Sep 17 00:00:00 2001 From: zwbetz-gh Date: Wed, 10 Jun 2020 20:01:12 -0500 Subject: [PATCH] fix accessibility issues --- assets/js/template-dom-scripts.js | 1 - layouts/post/single.html | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/assets/js/template-dom-scripts.js b/assets/js/template-dom-scripts.js index a09330d..26e24c6 100644 --- a/assets/js/template-dom-scripts.js +++ b/assets/js/template-dom-scripts.js @@ -70,7 +70,6 @@ var link = document.createElement('a'); link.setAttribute('href', '#' + id); var headingText = heading.textContent; - link.setAttribute('aria-label', 'This ' + headingText + ' section'); link.innerHTML = ''; container.appendChild(link); diff --git a/layouts/post/single.html b/layouts/post/single.html index 6ef8e4e..06466c0 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -10,18 +10,18 @@
{{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }} {{ $publishDate := .PublishDate }} - {{ $publishDate.Format $dateFormat }} + {{ T "publish_date" }} {{ $publishDate.Format $dateFormat }} {{ with .Lastmod }} {{ if gt . $publishDate }}
- {{ .Format $dateFormat }} + {{ T "last_updated" }} {{ .Format $dateFormat }} {{ end }} {{ end }}
{{ with .Params.tags }}
- + {{ T "tags" }}