i18n 1.1.1
xaoxuu 5 years ago
parent dc88f8bd3d
commit 7232cd31d0
  1. 4
      layout/_third-party/popular_posts.ejs
  2. 4
      layout/_widget/related_posts.ejs

@ -1,4 +0,0 @@
<div class="popular_posts">
<h4><i class="fas fa-bookmark fa-fw" aria-hidden="true"></i>&nbsp;<%- __('post.related_posts') %></h4>
<%- popular_posts( {} , post ) %>
</div>

@ -1,8 +1,8 @@
<% if(page.layout == 'post' && page.content && page.path){ %>
<% if(theme.services && theme.services.popular_posts == true && page.layout == 'post' && page.content && page.path){ %>
<section class='<%- item.widget %>'>
<%- partial('header', {item: item, defIcon: 'fas fa-bookmark', defTitle: __('sidebar.related_posts')}) %>
<div class="content <%= theme.style %>">
<%- popular_posts( { maxCount: 10 , ulClass: 'popular-posts' , PPMixingRate: 0.2 } , page ) %>
<%- popular_posts( { maxCount: 10 , ulClass: 'popular-posts' , PPMixingRate: 0.2 } , page ) %>
</div>
</section>
<% } %>

Loading…
Cancel
Save