Add accessible display links

This commit is contained in:
Jani Eväkallio 2020-06-25 16:37:36 +01:00
parent 96c6a8bfad
commit 047828a136
2 changed files with 24 additions and 0 deletions

12
_layouts/home.html Normal file
View File

@ -0,0 +1,12 @@
---
layout: default
---
{{ content }}
<script type="text/javascript">
// Hack: Replace page-link with "Page Title"
document.querySelectorAll(".markdown-body a[title]").forEach((a) => {
a.innerText = a.title;
});
</script>

12
_layouts/page.html Normal file
View File

@ -0,0 +1,12 @@
---
layout: default
---
{{ content }}
<script type="text/javascript">
// Hack: Replace page-link with "Page Title"
document.querySelectorAll(".markdown-body a[title]").forEach((a) => {
a.innerText = a.title;
});
</script>