hexo-theme-keep/layout/page.ejs

77 lines
2.0 KiB
Plaintext
Raw Normal View History

<div class="page-container">
2020-04-02 22:07:55 +08:00
<header class="page-header">
<div class="header-progress"></div>
</header>
2020-04-21 10:47:36 +08:00
<main class="page-main">
<div class="page-main-content">
2020-04-01 12:09:06 +08:00
<div class="page-main-content-top">
<%- partial('_partial/header') %>
</div>
2020-04-01 12:09:06 +08:00
<div class="page-main-content-middle">
2020-04-01 12:09:06 +08:00
<main class="main-content normal-code-theme">
2020-04-01 12:09:06 +08:00
<% if (is_home()) { %>
<%- partial('home-content') %>
2020-04-01 12:09:06 +08:00
<% } else if (is_archive()) { %>
<%- partial('archive-content') %>
2020-09-02 17:49:53 +08:00
<% } else if (is_post()) { %>
<%- partial('article-content') %>
2020-09-03 12:28:24 +08:00
<% } else if (is_category()) { %>
<%- partial('category-content') %>
2020-05-13 14:47:03 +08:00
<% } else if (is_tag()) { %>
<%- partial('tag-content') %>
2020-09-03 12:28:24 +08:00
<% } else if (page.title === 'category' || page.title === 'categories') { %>
<%- partial('category-list') %>
2020-05-13 14:47:03 +08:00
<% } else if (page.title === 'tag' || page.title === 'tags') { %>
<%- partial('_partial/tagcloud') %>
<% } else { %>
<%- partial('_partial/empty-page') %>
2020-04-21 10:47:36 +08:00
<% } %>
</main>
2020-04-21 10:47:36 +08:00
</div>
<div class="page-main-content-bottom">
<%- partial('_partial/footer') %>
</div>
</div>
</main>
<div class="sidebar-tools">
<%- partial('_partial/tools') %>
</div>
2020-04-05 00:42:07 +08:00
<% 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>
2020-04-02 22:07:55 +08:00
</div>
2020-04-02 22:07:55 +08:00
<% if (theme.local_search.enable) { %>
<%- partial('_partial/local-search') %>
2020-09-02 17:49:53 +08:00
<% } %>