parent
27068ddce0
commit
7176ffddf0
13 changed files with 59 additions and 69 deletions
@ -1,11 +1,12 @@ |
||||
<% var post_list = recommended_posts(page, site) %> |
||||
<% if(post_list.length > 0) { %> |
||||
<div class="recommended_posts"> |
||||
<h4><i class="fa fa-bookmark" aria-hidden="true"></i> 你可能感兴趣的文章</h4> |
||||
<h4><i class="fa fa-bookmark" aria-hidden="true"></i> 你可能感兴趣的文章</h4> |
||||
<ul> |
||||
<% post_list.forEach(function(link) { %> |
||||
<li><a href="<%= link.permalink %>"><%= link.title %></a></li> |
||||
<% }) %> |
||||
</ul> |
||||
</div> |
||||
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script> |
||||
<% } %> |
||||
|
@ -0,0 +1,8 @@ |
||||
<% if(page.content && page.toc!==false && toc(page.content).length > 0){ %> |
||||
<section class="m_widget toc-wrapper"> |
||||
<div class="header"><i class="fa fa-list" aria-hidden="true"></i> 目录</div> |
||||
<div class='content'> |
||||
<%- toc(page.content, {list_number: false}) %> |
||||
</div> |
||||
</section> |
||||
<% } %> |
Loading…
Reference in new issue