35 lines
1.2 KiB
HTML
Raw Normal View History

2018-01-09 00:28:39 +08:00
</main>
<footer class="footer">
2019-06-10 21:00:37 +08:00
<span>&copy; {{ now.Year }} <a href="{{ "/" | absURL }}">{{ .Site.Title }}</a></span>
2018-01-09 00:28:39 +08:00
<span>&middot;</span>
2018-09-28 20:15:19 +08:00
<span>Powered by <a href="https://gohugo.io/" rel="noopener" target="_blank">Hugo</a></span>
2018-01-09 00:28:39 +08:00
<span>&middot;</span>
2019-04-28 18:24:02 +08:00
<span>Theme <a href="https://github.com/nanxiaobei/hugo-paper" rel="noopener" target="_blank">Paper</a></span>
2018-01-09 00:28:39 +08:00
</footer>
<script src="{{ "js/instantclick.min.js" | absURL }}" data-no-instant></script>
2018-01-09 00:28:39 +08:00
<script data-no-instant>InstantClick.init();</script>
<script src="{{ "js/highlight.min.js" | absURL }}" data-no-instant></script>
2018-01-09 00:28:39 +08:00
<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);
}
2019-03-31 20:32:06 +08:00
hljs.initHighlightingOnLoad();
setMenuToggleListener();
2019-03-31 20:32:06 +08:00
InstantClick.on('change', function () {
2019-03-31 20:32:06 +08:00
document.querySelectorAll('pre code').forEach((block) => {
hljs.highlightBlock(block);
});
setMenuToggleListener();
2018-01-09 00:28:39 +08:00
});
</script>
</body>
2018-03-13 14:31:10 +08:00
</html>