mirror of
https://github.com/jie65535/note.git
synced 2025-10-16 17:03:50 +08:00
Initial commit
This commit is contained in:
18
_layouts/home.html
Normal file
18
_layouts/home.html
Normal 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
18
_layouts/page.html
Normal 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>
|
Reference in New Issue
Block a user