mirror of https://gitlab.com/curben/blog
Add table of contents to post
This commit is contained in:
parent
20632c9c26
commit
4ba10a3594
|
@ -13,10 +13,11 @@
|
|||
<%- post.excerpt %>
|
||||
<% if (theme.excerpt_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>
|
||||
<% } %>
|
||||
<% } else { %>
|
||||
<%- toc(page.content) %>
|
||||
<%- post.content %>
|
||||
<% } %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue