mirror of
https://github.com/foambubble/foam-template.git
synced 2025-06-07 20:08:54 +00:00
Add accessible display links
This commit is contained in:
parent
96c6a8bfad
commit
047828a136
2 changed files with 24 additions and 0 deletions
12
_layouts/home.html
Normal file
12
_layouts/home.html
Normal 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
12
_layouts/page.html
Normal 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>
|
Loading…
Add table
Reference in a new issue