hexo-theme-ayer/layout/layout.ejs

30 lines
799 B
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') %>
<% } %>
2019-12-03 11:37:44 +00:00
</div>
</body>
</html>