diff --git a/_config.yml b/_config.yml index bc8bcf4..d6cbf05 100755 --- a/_config.yml +++ b/_config.yml @@ -28,6 +28,7 @@ materialx: - contacts # 显示自己的联系信息 - music # 显示自己的网易云歌单 - links # 显示友链 + - toc # 显示目录 # 网易云音乐歌单id widgets_musicid: # 侧边栏的友链 diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 84f8782..fe45eee 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -13,14 +13,6 @@ <%- partial('categories',{post:post}) %> - <% if(post.toc!==false && toc(post.content).length > 0){ %> -
-
  目录
-
- <%- toc(post.content, {list_number: false}) %> -
-
- <% } %>
@@ -100,6 +92,7 @@
+ <% } %> <% } %> <% } %> diff --git a/layout/_partial/post/recommended_posts.ejs b/layout/_partial/post/recommended_posts.ejs index dbd6ff1..76e126b 100644 --- a/layout/_partial/post/recommended_posts.ejs +++ b/layout/_partial/post/recommended_posts.ejs @@ -1,11 +1,12 @@ <% var post_list = recommended_posts(page, site) %> <% if(post_list.length > 0) { %> + <% } %> diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index 588d2c8..301bec5 100755 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -3,9 +3,7 @@ - - - + <%- js('js/jquery.fitvids.js') %>