diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 8c4f402..50acfcf 100644 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -36,11 +36,14 @@ } else if ((config.toc && config.toc.enabled) || (post.toc && post.toc.enabled)){ var tocOptions = Object.assign({}, config.toc, post.toc); %> + <% var tocContent =toc (post.content, tocOptions); + if (tocContent) { %>

この記事の内容

- <%- toc(post.content, tocOptions) %> + <%- tocContent %>
- <% } %> + <% } + } %> <%- post.content %> <% } %> <% if (!post.disableDisclaimer && config.disclaimer){ %>