mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
29 lines
752 B
HTML
29 lines
752 B
HTML
<hr/>
|
|
<div class="page-end">
|
|
<div class="backlinks-container">
|
|
{{partial "backlinks.html" .}}
|
|
</div>
|
|
<div>
|
|
{{partial "graph.html" .}}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<script defer>
|
|
(() => {
|
|
const links = document.querySelectorAll('.singlePage article a');
|
|
links.forEach(link => {
|
|
const content = link.textContent;
|
|
const parts = content.split('/');
|
|
const newContent = parts[parts.length - 1];
|
|
if (newContent.indexOf(']]') > -1) {
|
|
link.textContent = newContent.slice(0, -2);
|
|
} else {
|
|
link.textContent = newContent;
|
|
}
|
|
|
|
})
|
|
})()
|
|
</script>
|
|
<!-- {{partial "contact.html" .}} --> |