quartz/layouts/partials/footer.html
Adam Gospodarczyk da2d93f602 Brain
2022-04-26 16:25:19 +02:00

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" .}} -->