i18n 1.0.1
xaoxuu 6 years ago
parent 59e0a9a374
commit aacc15d242
  1. 14
      layout/_partial/archive.ejs
  2. 4
      layout/_partial/meta.ejs

@ -13,17 +13,19 @@
<% } %>
<section class="post-list">
<% page.posts.each(function(post){ %>
<% if (post.top == true) { %>
<% if (page.prev == 0) { %>
<% site.posts.each(function(post){ %>
<% if (post.top) { %>
<div class='post-wrapper'>
<%- partial('post', {post: post}) %>
<%- partial('post', {post: post}) %>
</div>
<% } %>
<% }) %>
<% }) %>
<% } %>
<% page.posts.each(function(post){ %>
<% if (!post.top || post.top != true) { %>
<% if (!post.top) { %>
<div class='post-wrapper'>
<%- partial('post', {post: post}) %>
<%- partial('post', {post: post}) %>
</div>
<% } %>
<% }) %>

@ -53,9 +53,9 @@
<% } %>
<% } %>
<% if(isPostList && post.top == true && (!post.meta || post.meta.top != false)){ %>
<% if(isPostList && post.top && (!post.meta || post.meta.top != false)){ %>
<div class="metatag top">
<i class="fas fa-angle-double-up fa-fw" aria-hidden="true"></i>&nbsp;<%- __('post.top') %>
<i class="fas fa-angle-double-up fa-fw" aria-hidden="true"></i>&nbsp;<%- post.top != true ? post.top : __('post.top') %>
</div>
<% } %>

Loading…
Cancel
Save