mirror of
https://github.com/foambubble/foam-template.git
synced 2025-06-07 11:58:53 +00:00
18 lines
452 B
HTML
18 lines
452 B
HTML
---
|
|
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;
|
|
});
|
|
// Hack: Remove .md extension from wikilinks to get the html in jekyll
|
|
document.querySelectorAll("a").forEach(l => {
|
|
if (l.href.endsWith('.md')) {
|
|
l.href = l.href.substring(0, l.href.length-3)
|
|
}
|
|
})
|
|
</script>
|