77 lines
2.0 KiB
Plaintext
77 lines
2.0 KiB
Plaintext
<div class="page-container">
|
|
|
|
<header class="page-header">
|
|
<div class="header-progress"></div>
|
|
</header>
|
|
|
|
<main class="page-main">
|
|
|
|
<div class="page-main-content">
|
|
|
|
<div class="page-main-content-top">
|
|
<%- partial('_partial/header') %>
|
|
</div>
|
|
|
|
<div class="page-main-content-middle">
|
|
|
|
<main class="main-content normal-code-theme">
|
|
|
|
<% if (is_home()) { %>
|
|
<%- partial('home-content') %>
|
|
|
|
<% } else if (is_archive()) { %>
|
|
<%- partial('archive-content') %>
|
|
|
|
<% } else if (is_post()) { %>
|
|
<%- partial('article-content') %>
|
|
|
|
<% } else if (is_category()) { %>
|
|
<%- partial('category-content') %>
|
|
|
|
<% } else if (is_tag()) { %>
|
|
<%- partial('tag-content') %>
|
|
|
|
<% } else if (page.title === 'category' || page.title === 'categories') { %>
|
|
<%- partial('category-list') %>
|
|
|
|
<% } else if (page.title === 'tag' || page.title === 'tags') { %>
|
|
<%- partial('_partial/tagcloud') %>
|
|
|
|
<% } else { %>
|
|
<%- partial('_partial/empty-page') %>
|
|
|
|
<% } %>
|
|
</main>
|
|
|
|
</div>
|
|
|
|
<div class="page-main-content-bottom">
|
|
<%- partial('_partial/footer') %>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<div class="sidebar-tools">
|
|
<%- partial('_partial/tools') %>
|
|
</div>
|
|
|
|
<% if (theme.side_tools.enable) { %>
|
|
<div class="bottom-sidebar-tools">
|
|
<%- partial('_partial/tools2') %>
|
|
</div>
|
|
<% } %>
|
|
|
|
<!-- page aside -->
|
|
<aside class="page-aside">
|
|
<% if (is_post()) { %>
|
|
<%- partial('_partial/toc') %>
|
|
<% } %>
|
|
</aside>
|
|
|
|
</div>
|
|
|
|
|
|
<% if (theme.local_search.enable) { %>
|
|
<%- partial('_partial/local-search') %>
|
|
<% } %>
|