hugo-PaperMod/layouts/partials/footer.html
2019-06-10 19:57:40 +08:00

35 lines
1.2 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

</main>
<footer class="footer">
<span>&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></span>
<span>&middot;</span>
<span>Powered by <a href="https://gohugo.io/" rel="noopener" target="_blank">Hugo</a></span>
<span>&middot;</span>
<span>Theme <a href="https://github.com/nanxiaobei/hugo-paper" rel="noopener" target="_blank">Paper</a></span>
</footer>
<script src="{{ "js/instantclick.min.js" | absURL }}" data-no-instant></script>
<script data-no-instant>InstantClick.init();</script>
<script src="{{ "js/highlight.min.js" | absURL }}" data-no-instant></script>
<script data-no-instant>
let body;
function menuToggleListener() {
body.classList.toggle('no-scroll');
}
function setMenuToggleListener() {
const menuToggle = document.querySelector('.menu-toggle');
body = document.querySelector('body');
menuToggle.addEventListener('click', menuToggleListener);
}
hljs.initHighlightingOnLoad();
setMenuToggleListener();
InstantClick.on('change', function () {
document.querySelectorAll('pre code').forEach((block) => {
hljs.highlightBlock(block);
});
setMenuToggleListener();
});
</script>
</body>
</html>