diff options
author | zwbetz-gh <zwbetz@gmail.com> | 2020-06-11 04:01:12 +0300 |
---|---|---|
committer | zwbetz-gh <zwbetz@gmail.com> | 2020-06-11 04:01:12 +0300 |
commit | 5e2ff37e94d1229ab801a7f2ef3aef3513726127 (patch) | |
tree | e83b0455a552aa76d1e0cceba66684f779b3d475 | |
parent | f6708d1cf4a987f52d1820439f809323ee1ea788 (diff) |
fix accessibility issues
-rw-r--r-- | assets/js/template-dom-scripts.js | 1 | ||||
-rw-r--r-- | 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 = '<svg aria-hidden="true" class="link-icon" viewBox="0 0 50 50" focusable="false"> <use xlink:href="#link"></use> </svg>'; 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 @@ <div class="date"> {{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }} {{ $publishDate := .PublishDate }} - <strong aria-hidden="true">{{ T "publish_date" }} </strong>{{ $publishDate.Format $dateFormat }} + <strong>{{ T "publish_date" }} </strong>{{ $publishDate.Format $dateFormat }} {{ with .Lastmod }} {{ if gt . $publishDate }} <br> - <strong aria-hidden="true">{{ T "last_updated" }} </strong>{{ .Format $dateFormat }} + <strong>{{ T "last_updated" }} </strong>{{ .Format $dateFormat }} {{ end }} {{ end }} </div> {{ with .Params.tags }} <div class="tags"> - <strong aria-hidden="true">{{ T "tags" }} </strong> + <strong>{{ T "tags" }} </strong> <ul aria-label="{{ T "aria_label_tags" }}"> {{ range . }} <li> |