Add table of contents to post

This commit is contained in:
curben 2018-09-21 14:57:00 +09:30
parent 20632c9c26
commit 4ba10a3594
1 changed files with 2 additions and 1 deletions

View File

@ -13,10 +13,11 @@
<%- post.excerpt %> <%- post.excerpt %>
<% if (theme.excerpt_link){ %> <% if (theme.excerpt_link){ %>
<p class="article-more-link"> <p class="article-more-link">
<a href="<%- url_for(post.path) %>#more"><%= theme.excerpt_link %></a> <%- link_to(url_for(post.path)+'#more', theme.excerpt_link) %>
</p> </p>
<% } %> <% } %>
<% } else { %> <% } else { %>
<%- toc(page.content) %>
<%- post.content %> <%- post.content %>
<% } %> <% } %>
</div> </div>