mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
</main>
|
||
<footer class="footer">
|
||
<span>© {{ now.Year }} {{ .Site.Title }}</span>
|
||
<span>·</span>
|
||
<span>Powered by <a href="https://gohugo.io/" rel="noopener" target="_blank">Hugo️️</a>️</span>
|
||
<span>·</span>
|
||
<span><a href="https://github.com/nanxiaobei/hugo-paper" rel="noopener" target="_blank">Paper 3.3</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>
|