Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz-gh <zwbetz@gmail.com>2020-06-11 04:01:12 +0300
committerzwbetz-gh <zwbetz@gmail.com>2020-06-11 04:01:12 +0300
commit5e2ff37e94d1229ab801a7f2ef3aef3513726127 (patch)
treee83b0455a552aa76d1e0cceba66684f779b3d475
parentf6708d1cf4a987f52d1820439f809323ee1ea788 (diff)
fix accessibility issues
-rw-r--r--assets/js/template-dom-scripts.js1
-rw-r--r--layouts/post/single.html6
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>