2020-04-01 10:14:18 +08:00
|
|
|
<div class="page-template">
|
|
|
|
<div class="page-top">
|
|
|
|
<%- partial('_partial/header') %>
|
2020-03-15 17:39:18 +08:00
|
|
|
</div>
|
2020-04-02 22:07:55 +08:00
|
|
|
|
2020-04-29 16:08:43 +08:00
|
|
|
<div class="page-middle ">
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2020-04-03 18:18:42 +08:00
|
|
|
<main class="main-content normal-code-theme">
|
2020-04-24 22:49:10 +08:00
|
|
|
|
2020-04-29 18:41:29 +08:00
|
|
|
<div class="main-content-left">
|
2020-04-21 10:47:36 +08:00
|
|
|
<% if (is_home()) { %>
|
|
|
|
<%- partial('home-content') %>
|
2020-04-01 12:09:06 +08:00
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
<% } else if (is_archive()) { %>
|
|
|
|
<%- partial('archive-content') %>
|
2020-04-01 12:09:06 +08:00
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
<% } else if (is_post()) { %>
|
|
|
|
<%- partial('article-content') %>
|
2020-04-01 12:09:06 +08:00
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
<% } else if (is_category()) { %>
|
|
|
|
<%- partial('category-content') %>
|
2020-04-01 12:09:06 +08:00
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
<% } else if (is_tag()) { %>
|
|
|
|
<%- partial('tag-content') %>
|
2020-04-01 12:09:06 +08:00
|
|
|
|
2020-09-02 17:49:53 +08:00
|
|
|
<% } else if (page.title == 'category') { %>
|
|
|
|
<%- partial('category-list') %>
|
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
<% } else if (page.title == 'about') { %>
|
|
|
|
<%- partial('about') %>
|
2020-05-13 14:47:03 +08:00
|
|
|
|
|
|
|
<% } else if (page.title == 'links') { %>
|
|
|
|
<%- partial('links') %>
|
2020-04-21 10:47:36 +08:00
|
|
|
<% } %>
|
2020-05-13 14:47:03 +08:00
|
|
|
|
2020-04-21 10:47:36 +08:00
|
|
|
</div>
|
|
|
|
|
2020-04-24 22:49:10 +08:00
|
|
|
<% if (theme.magic.enable && theme.magic.sidebar.enable) { %>
|
|
|
|
<div class="main-content-right">
|
|
|
|
<%- partial('_partial/sidebar') %>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
2020-04-29 16:08:43 +08:00
|
|
|
|
2020-04-24 22:49:10 +08:00
|
|
|
</main>
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2020-04-02 11:01:24 +08:00
|
|
|
<div class="sidebar-tools">
|
|
|
|
<%- partial('_partial/tools') %>
|
|
|
|
</div>
|
2020-04-05 00:42:07 +08:00
|
|
|
|
2020-04-25 21:45:45 +08:00
|
|
|
<% if (theme.back2top.enable) { %>
|
|
|
|
<div class="scroll-to-top">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<!--<i class="fa fa-caret-up"></i>-->
|
|
|
|
<span class="scroll-percent"></span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
2020-04-01 10:14:18 +08:00
|
|
|
</div>
|
2020-04-02 11:01:24 +08:00
|
|
|
|
2020-04-01 10:14:18 +08:00
|
|
|
<div class="page-bottom">
|
|
|
|
<%- partial('_partial/footer') %>
|
2020-03-15 17:39:18 +08:00
|
|
|
</div>
|
2020-04-02 22:07:55 +08:00
|
|
|
</div>
|
|
|
|
<% if (theme.local_search.enable) { %>
|
|
|
|
<%- partial('_partial/local-search') %>
|
2020-09-02 17:49:53 +08:00
|
|
|
<% } %>
|