hexo-theme-ayer/layout/layout.ejs

47 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-12-03 11:37:44 +00:00
<%- partial('_partial/head') %>
<body>
<div id="app">
2020-03-25 15:41:05 +00:00
<main class="content on">
2019-12-03 11:37:44 +00:00
<%- body %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
2020-03-23 15:04:50 +00:00
<div class="float_btns">
2019-12-05 14:17:35 +00:00
<%- partial('_partial/totop') %>
</div>
2019-12-03 11:37:44 +00:00
</main>
2020-03-25 15:41:05 +00:00
<aside class="sidebar on">
2020-02-27 07:42:29 +00:00
<%- partial('_partial/sidebar') %>
</aside>
2020-03-25 15:41:05 +00:00
<script>
if (window.matchMedia("(max-width: 768px)").matches) {
document.querySelector('.content').classList.remove('on');
document.querySelector('.sidebar').classList.remove('on');
}
</script>
2020-02-27 07:42:29 +00:00
<%- partial('_partial/modal') %>
<%- partial('_partial/after-footer') %>
<% if (theme.music&&theme.music.enable){ %>
<%- partial('_partial/music') %>
<% } %>
2020-06-02 12:41:10 +00:00
<% if (theme.click_effect===2){ %>
<canvas class="fireworks"></canvas>
<style>
.fireworks {
position: fixed;
left: 0;
top: 0;
z-index: 99999;
pointer-events: none;
}
</style>
<% } %>
<% if (theme.click_effect===3){ %>
<canvas width="1777" height="841"
style="position: fixed; left: 0px; top: 0px; z-index: 99999; pointer-events: none;"></canvas>
<% } %>
2019-12-03 11:37:44 +00:00
</div>
</body>
</html>