hugo-WonderMod/layouts/partials/footer.html

33 lines
1.1 KiB
HTML
Raw Normal View History

2018-01-08 11:28:39 -05:00
</main>
<footer class="footer">
2018-08-15 13:22:33 -04:00
<span>&copy; {{ now.Year }} {{ .Site.Title }}</span>
2018-01-08 11:28:39 -05:00
<span>&middot;</span>
2018-09-28 08:15:19 -04:00
<span>Powered by <a href="https://gohugo.io/" rel="noopener" target="_blank">Hugo</a></span>
2018-01-08 11:28:39 -05:00
<span>&middot;</span>
2019-04-25 17:29:37 -04:00
<span><a href="https://github.com/nanxiaobei/hugo-paper" rel="noopener" target="_blank">Paper 3.3</a></span>
2018-01-08 11:28:39 -05:00
</footer>
2018-10-31 01:42:53 -04:00
<script src="{{.Site.BaseURL}}js/instantclick.min.js" data-no-instant></script>
2018-01-08 11:28:39 -05:00
<script data-no-instant>InstantClick.init();</script>
2018-10-31 01:42:53 -04:00
<script src="{{.Site.BaseURL}}js/highlight.min.js" data-no-instant></script>
2018-01-08 11:28:39 -05:00
<script data-no-instant>
2019-03-31 08:32:06 -04:00
hljs.initHighlightingOnLoad();
setMenuListener();
2018-01-08 11:28:39 -05:00
InstantClick.on('change', function() {
2019-03-31 08:32:06 -04:00
document.querySelectorAll('pre code').forEach((block) => {
hljs.highlightBlock(block);
});
setMenuListener();
2018-01-08 11:28:39 -05:00
});
2019-04-01 04:00:59 -04:00
2019-03-31 08:32:06 -04:00
function setMenuListener() {
var menuToggle = document.querySelector('.menu-toggle');
var body = document.querySelector('body');
menuToggle.addEventListener('click', function() {
body.classList.toggle('no-scroll');
2018-01-08 11:28:39 -05:00
}, false);
}
</script>
</body>
2018-03-13 02:31:10 -04:00
</html>