parent
6899124927
commit
c744c69ae3
4 changed files with 5 additions and 35 deletions
@ -1,4 +1,4 @@ |
|||||||
<div class="recommended_posts"> |
<div class="popular_posts"> |
||||||
<h4><i class="fas fa-bookmark fa-fw" aria-hidden="true"></i> <%- __('post.related_posts') %></h4> |
<h4><i class="fas fa-bookmark fa-fw" aria-hidden="true"></i> <%- __('post.related_posts') %></h4> |
||||||
<%- popular_posts( {} , post ) %> |
<%- popular_posts( {} , post ) %> |
||||||
</div> |
</div> |
||||||
|
@ -1,11 +0,0 @@ |
|||||||
<% var post_list = recommended_posts(page, site) %> |
|
||||||
<% if(post_list.length > 0) { %> |
|
||||||
<div class="recommended_posts"> |
|
||||||
<h4><i class="fas fa-bookmark fa-fw" aria-hidden="true"></i> <%- __('post.related_posts') %></h4> |
|
||||||
<ul> |
|
||||||
<% post_list.forEach(function(link) { %> |
|
||||||
<li><a href="<%= link.permalink %>"><%= link.title %></a></li> |
|
||||||
<% }) %> |
|
||||||
</ul> |
|
||||||
</div> |
|
||||||
<% } %> |
|
Loading…
Reference in new issue