hugo-WonderMod/layouts/partials/footer.html
2019-04-28 18:24:02 +08:00

33 lines
1.1 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 }} {{ .Site.Title }}</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="{{.Site.BaseURL}}js/instantclick.min.js" data-no-instant></script>
<script data-no-instant>InstantClick.init();</script>
<script src="{{.Site.BaseURL}}js/highlight.min.js" data-no-instant></script>
<script data-no-instant>
hljs.initHighlightingOnLoad();
setMenuListener();
InstantClick.on('change', function() {
document.querySelectorAll('pre code').forEach((block) => {
hljs.highlightBlock(block);
});
setMenuListener();
});
function setMenuListener() {
var menuToggle = document.querySelector('.menu-toggle');
var body = document.querySelector('body');
menuToggle.addEventListener('click', function() {
body.classList.toggle('no-scroll');
}, false);
}
</script>
</body>
</html>