Skip to content

Commit

Permalink
🐛 修复分类标签没有翻页
Browse files Browse the repository at this point in the history
  • Loading branch information
zkqiang committed Dec 4, 2019
1 parent d46589e commit d543bc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions layout/category.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var date_cursor = 'xxx'
%>

<div class="list-group">
<p class="h4"><%= __('postTotal', page.posts.length) %></p>
<p class="h4"><%= __('postTotal', site.posts.length) %></p>
<hr>
<% page.posts.each(function (post) { %>
<% if(date(post.date, "YYYY") != date_cursor) { %>
Expand All @@ -21,4 +21,5 @@ var date_cursor = 'xxx'
<span style="float: right;"><%- date(post.date, "MM-DD") %></span>
</a>
<% }) %>
</div>
</div>
<%- partial('_partial/paginator') %>
4 changes: 2 additions & 2 deletions layout/tag.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var date_cursor = 'xxx'
%>

<div class="list-group">
<p class="h4"><%= __('postTotal', page.posts.length) %></p>
<p class="h4"><%= __('postTotal', site.posts.length) %></p>
<hr>
<% page.posts.each(function (post) { %>
<% if(date(post.date, "YYYY") != date_cursor) { %>
Expand All @@ -22,4 +22,4 @@ var date_cursor = 'xxx'
</a>
<% }) %>
</div>

<%- partial('_partial/paginator') %>

0 comments on commit d543bc8

Please sign in to comment.