mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 18:41:37 +01:00
35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
</main>
|
||
<footer class="footer">
|
||
<span>© {{ now.Year }} <a href="{{ "/" | absURL }}">{{ .Site.Title }}</a></span>
|
||
<span>·</span>
|
||
<span>Powered by <a href="https://gohugo.io/" rel="noopener" target="_blank">Hugo️️</a>️</span>
|
||
<span>·</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>
|