forked from morris821028/hexo-theme-landscape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.ejs
executable file
·24 lines (24 loc) · 936 Bytes
/
layout.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<%- partial('_partial/head') %>
<body>
<div id="container">
<div id="wrap">
<%- partial('_partial/header', null, {cache: !config.relative_link}) %>
<div class="outer">
<% if (page.layout == '404') { %>
<%- partial('404') %>
<% } else if(page.layout == 'page' || page.layout == 'tags') { %>
<section id="main" style="width: 95%"><%- body %></section>
<% } else { %>
<section id="main"><%- body %></section>
<% if (theme.sidebar && theme.sidebar !== 'bottom'){ %>
<%- partial('_partial/sidebar', null, {cache: !config.relative_link}) %>
<% } %>
<% } %>
</div>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
</div>
<%- partial('_partial/mobile-nav', null, {cache: !config.relative_link}) %>
<%- partial('_partial/after-footer') %>
</div>
</body>
</html>