From 4ba10a3594be77fc1b8998fe6b39cee366d97b2b Mon Sep 17 00:00:00 2001 From: curben Date: Fri, 21 Sep 2018 14:57:00 +0930 Subject: [PATCH] Add table of contents to post --- themes/typing/layout/_partial/article.ejs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/typing/layout/_partial/article.ejs b/themes/typing/layout/_partial/article.ejs index 89d60df..2e575aa 100644 --- a/themes/typing/layout/_partial/article.ejs +++ b/themes/typing/layout/_partial/article.ejs @@ -13,10 +13,11 @@ <%- post.excerpt %> <% if (theme.excerpt_link){ %>

- <%= theme.excerpt_link %> + <%- link_to(url_for(post.path)+'#more', theme.excerpt_link) %>

<% } %> <% } else { %> + <%- toc(page.content) %> <%- post.content %> <% } %>