2021-01-06 18:36:28 +08:00
|
|
|
<%- partial('_partial/progress-bar') %>
|
|
|
|
<main class="page-container">
|
2020-12-25 19:59:34 +08:00
|
|
|
|
|
|
|
<% if (theme.style.first_screen.enable === true && is_home() && !page.prev) { %>
|
|
|
|
<%- partial('_partial/first-screen') %>
|
|
|
|
<% } %>
|
2020-11-13 14:43:22 +08:00
|
|
|
|
2022-09-27 17:52:45 +08:00
|
|
|
<div class="page-main-content<%= is_home() ? ' home' : '' %>">
|
2020-12-25 19:59:34 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<div class="page-main-content-top">
|
|
|
|
<%- partial('_partial/header') %>
|
|
|
|
</div>
|
2020-04-01 12:09:06 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<div class="page-main-content-middle">
|
2020-04-01 12:09:06 +08:00
|
|
|
|
2021-01-23 11:30:12 +08:00
|
|
|
<div class="main-content">
|
2020-04-01 12:09:06 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<% if (is_home()) { %>
|
|
|
|
<%- partial('home-content') %>
|
2020-09-02 17:49:53 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<% } else if (is_archive()) { %>
|
|
|
|
<%- partial('archive-content') %>
|
2020-09-03 12:28:24 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<% } else if (is_post()) { %>
|
|
|
|
<%- partial('article-content') %>
|
2020-05-13 14:47:03 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<% } else if (is_category()) { %>
|
|
|
|
<%- partial('category-content') %>
|
2020-09-03 12:28:24 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<% } else if (is_tag()) { %>
|
|
|
|
<%- partial('tag-content') %>
|
2020-05-13 14:47:03 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<% } else if (page.title === 'category' || page.title === 'categories') { %>
|
|
|
|
<%- partial('category-list') %>
|
2020-09-05 22:41:10 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<% } else if (page.title === 'tag' || page.title === 'tags') { %>
|
|
|
|
<%- partial('_partial/tagcloud') %>
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<% } else { %>
|
2021-01-29 15:06:06 +08:00
|
|
|
<%- partial('_partial/page-template') %>
|
2020-04-21 10:47:36 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<% } %>
|
2020-09-05 22:41:10 +08:00
|
|
|
</div>
|
|
|
|
|
2020-04-02 11:01:24 +08:00
|
|
|
</div>
|
2021-01-06 18:36:28 +08:00
|
|
|
|
|
|
|
<div class="page-main-content-bottom">
|
|
|
|
<%- partial('_partial/footer') %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-05 22:41:10 +08:00
|
|
|
|
2020-12-24 21:16:31 +08:00
|
|
|
<% if (is_post()) { %>
|
2021-01-06 23:53:17 +08:00
|
|
|
<div class="post-tools">
|
|
|
|
<%- partial('_partial/post-tools') %>
|
2020-12-24 21:16:31 +08:00
|
|
|
</div>
|
|
|
|
<% } %>
|
2020-04-05 00:42:07 +08:00
|
|
|
|
2020-11-25 16:54:44 +08:00
|
|
|
<div class="right-bottom-side-tools">
|
2021-01-06 23:53:17 +08:00
|
|
|
<%- partial('_partial/side-tools') %>
|
2020-11-25 16:54:44 +08:00
|
|
|
</div>
|
2020-12-25 19:59:34 +08:00
|
|
|
|
2022-09-26 21:07:12 +08:00
|
|
|
<% if (is_post() && theme.toc.enable === true && page.toc !== false) { %>
|
2020-12-25 19:59:34 +08:00
|
|
|
<aside class="page-aside">
|
2020-09-05 22:41:10 +08:00
|
|
|
<%- partial('_partial/toc') %>
|
2020-12-25 19:59:34 +08:00
|
|
|
</aside>
|
|
|
|
<% } %>
|
|
|
|
|
2020-11-16 19:04:24 +08:00
|
|
|
<%- partial('_partial/image-viewer') %>
|
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
<% if (theme.local_search.enable) { %>
|
|
|
|
<%- partial('_partial/local-search') %>
|
|
|
|
<% } %>
|
2020-09-05 22:41:10 +08:00
|
|
|
|
2021-01-06 18:36:28 +08:00
|
|
|
</main>
|
2020-12-22 18:19:41 +08:00
|
|
|
|
2020-12-25 19:59:34 +08:00
|
|
|
|