You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.6 KiB
38 lines
1.6 KiB
<%- partial('_pre') %> |
|
<% page.comments = false; %> |
|
<div class='l_main<%- page.sidebar == false ? ' no_sidebar' : '' %>'> |
|
<% if (site.posts && site.posts.length > 0) { %> |
|
<% if (page.layout == 'category') { %> |
|
<section class="post-list <%- theme.layout.multiple_columns ? 'multiple-columns' : '' %>"> |
|
<div class='post-wrapper'> |
|
<article id="archive-page" class="post article white-box reveal <%- theme.style.body.effect.join(' ') %>"> |
|
<section class="archive"> |
|
<div class="archive-item archive-year mark"> |
|
<h2><%- page.title %></h2> |
|
</div> |
|
<div class="archive-item archive-post mark all-categories"> |
|
<% if (site.categories.length){ %> |
|
<% site.categories.sort('path').each(function(category){ %> |
|
<a class="<%= category.parent ? ' child' : ''%>" href="<%= url_for(category.path) %>"> |
|
<time><i class='fas fa-folder-open fa-fw' aria-hidden="true"></i> <%= category.name %></time> |
|
<span class="title"> |
|
(<%- category.posts.length %>) |
|
</span> |
|
</a> |
|
<% }) %> |
|
<% } %> |
|
</div> |
|
<br> |
|
<%- page.content %> |
|
</section> |
|
</article> |
|
</div> |
|
</section> |
|
<% } else { %> |
|
<%- partial('_partial/archive') %> |
|
<% } %> |
|
<% } %> |
|
|
|
</div> |
|
<%- partial('_partial/side') %> |
|
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
|
|
|