quartz/layouts/partials/footer.html
Adam Gospodarczyk bbbca91727 Update
2022-11-05 20:05:02 +01:00

45 lines
1.3 KiB
HTML

<hr/>
{{if $.Site.Data.config.enableFooter}}
<div class="page-end" id="footer">
<div class="backlinks-container">
{{partial "backlinks.html" .}}
</div>
<div>
</div>
</div>
{{end}}
<script defer>
(() => {
// remove [[ ]] from links
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;
}
})
function reverseChildren(parent) {
for (var i = 1; i < parent.childNodes.length; i++){
parent.insertBefore(parent.childNodes[i], parent.firstChild);
}
}
reverseChildren(document.querySelector('.tree > ol'))
})()
</script>
{{partial "contact.html" .}}
<button class="newsletter-btn" data-tally-open="nrjOON" data-tally-emoji-text="💜" data-tally-emoji-animation="heart-beat">Dołącz do newslettera</button>
{{partial "newsletter.html" .}}
{{partial "contact.html" .}}