diff --git a/_config.yml.example b/_config.yml.example index ce7955a..f2ca1be 100644 --- a/_config.yml.example +++ b/_config.yml.example @@ -22,7 +22,7 @@ customize: location: Harbin, China follow: https://github.com/ppoffice/ highlight: monokai - sidebar: right # sidebar position, options: left, right + sidebar: right # sidebar position, options: left, right or leave it empty thumbnail: true # enable posts thumbnail, options: true, false favicon: # path to favicon social_links: diff --git a/layout/comment/index.ejs b/layout/comment/index.ejs index 2417800..f69a0fa 100644 --- a/layout/comment/index.ejs +++ b/layout/comment/index.ejs @@ -1,19 +1,17 @@ <% if (post.comments) { %> -
<% if (theme.comment.disqus) { %> - <%- partial('comment/disqus') %> +
<%- partial('comment/disqus') %>
<% } else if (theme.comment.duoshuo) { %> - <%- partial('comment/duoshuo') %> +
<%- partial('comment/duoshuo') %>
<% } else if (theme.comment.youyan) { %> - <%- partial('comment/youyan') %> +
<%- partial('comment/youyan') %>
<% } else if (theme.comment.facebook) { %> - <%- partial('comment/facebook') %> +
<%- partial('comment/facebook') %>
<% } else if (theme.comment.isso) { %> - <%- partial('comment/isso') %> +
<%- partial('comment/isso') %>
<% } else if (theme.comment.changyan && theme.comment.changyan.appid && theme.comment.changyan.conf) { %> - <%- partial('comment/changyan') %> +
<%- partial('comment/changyan') %>
<% } else if (theme.comment.gitment) { %> - <%- partial('comment/gitment') %> +
<%- partial('comment/gitment') %>
<% } %> -
<% } %> \ No newline at end of file diff --git a/layout/common/sidebar.ejs b/layout/common/sidebar.ejs index ba38c79..462873f 100644 --- a/layout/common/sidebar.ejs +++ b/layout/common/sidebar.ejs @@ -1,6 +1,8 @@ +<% if (Array.isArray(theme.widgets) && theme.widgets.length > 0) { %> \ No newline at end of file + +<% } %> \ No newline at end of file