Initial commit

This commit is contained in:
2022-04-09 21:22:06 +08:00
commit cdf95090d5
26 changed files with 640 additions and 0 deletions

18
_layouts/home.html Normal file
View File

@@ -0,0 +1,18 @@
---
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>

18
_layouts/page.html Normal file
View File

@@ -0,0 +1,18 @@
---
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>