diff --git a/_config.yml.example b/_config.yml.example index af49cf8..add9135 100644 --- a/_config.yml.example +++ b/_config.yml.example @@ -53,6 +53,8 @@ comment: disqus: hexo-theme-icarus # enter disqus shortname here duoshuo: # enter duoshuo shortname here youyan: # enter youyan uid here + facebook: # enter true to enable + isso: # enter the domain name of your own comment isso server eg. comments.example.com # Share share: default # options: jiathis, bdshare, addtoany, default diff --git a/layout/comment/counter.ejs b/layout/comment/counter.ejs index 19c5ef8..7f9d5c3 100644 --- a/layout/comment/counter.ejs +++ b/layout/comment/counter.ejs @@ -5,5 +5,9 @@ <%= __('article.comments') %> <% } else if (theme.comment.youyan) { %> <%= __('article.comments') %> + <% } else if (theme.comment.isso) { %> + <%= __('article.comments') %> + <% } else if (theme.comment.facebook) { %> + 0 <%= __('article.comments') %> <% } %> <% } %> \ No newline at end of file diff --git a/layout/comment/facebook.ejs b/layout/comment/facebook.ejs new file mode 100644 index 0000000..84dae84 --- /dev/null +++ b/layout/comment/facebook.ejs @@ -0,0 +1,11 @@ +<% if (typeof(script) !== 'undefined' && script) { %> + +<% } else { %> +
+<% } %> diff --git a/layout/comment/index.ejs b/layout/comment/index.ejs index 1533c46..66396f0 100644 --- a/layout/comment/index.ejs +++ b/layout/comment/index.ejs @@ -6,6 +6,10 @@ <%- partial('comment/duoshuo') %> <% } else if (theme.comment.youyan) { %> <%- partial('comment/youyan') %> + <% } else if (theme.comment.facebook) { %> + <%- partial('comment/facebook') %> + <% } else if (theme.comment.isso) { %> + <%- partial('comment/isso') %> <% } %> <% } %> \ No newline at end of file diff --git a/layout/comment/isso.ejs b/layout/comment/isso.ejs new file mode 100644 index 0000000..a10e53e --- /dev/null +++ b/layout/comment/isso.ejs @@ -0,0 +1,8 @@ +<% if (typeof(script) !== 'undefined' && script) { %> + +<% } else { %> +
+<% } %> + diff --git a/layout/comment/scripts.ejs b/layout/comment/scripts.ejs index 979ce7c..4035552 100644 --- a/layout/comment/scripts.ejs +++ b/layout/comment/scripts.ejs @@ -4,4 +4,8 @@ <%- partial('comment/duoshuo', { script: true }) %> <% } else if (theme.comment.youyan) { %> <%- partial('comment/youyan', { script: true }) %> -<% } %> \ No newline at end of file +<% } else if (theme.comment.facebook) { %> + <%- partial('comment/facebook', { script: true }) %> +<% } else if (theme.comment.isso) { %> + <%- partial('comment/isso', { script: true }) %> +<% } %>