Files
foam/docs/_layouts/page.html
Jani Eväkallio be704d7494 Fix external links
2020-07-11 14:24:39 +01:00

19 lines
352 B
HTML

---
layout: default
---
{{ content }}
<script type="text/javascript">
// Hack: Replace page-link with "Page Title"
document
.querySelectorAll(".markdown-body a[title]:not([href^=http])")
.forEach((a) => {
a.innerText = a.title;
});
document.querySelectorAll(".github-only").forEach((el) => {
el.remove();
});
</script>