mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 14:54:05 -06:00
45 lines
1.3 KiB
HTML
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" .}}
|