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 %>
|
<%- 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>
|
||||||
|
|
Loading…
Reference in New Issue