diff --git a/_config.yml.example b/_config.yml.example index 8f6c65ca..09c92637 100644 --- a/_config.yml.example +++ b/_config.yml.example @@ -50,6 +50,13 @@ comment: appId: # enter the changyan appId here appKey: # enter the changyan appKey here on: # enter true to enable + valine: # Valine Comment System https://github.com/xCss/Valine + on: # enter true to enable valine + appId: # enter the leancloud application appId here + appKey: # enter the leancloud application appKey here + notify: # enter true to enable https://github.com/xCss/Valine/wiki/Valine-%E8%AF%84%E8%AE%BA%E7%B3%BB%E7%BB%9F%E4%B8%AD%E7%9A%84%E9%82%AE%E4%BB%B6%E6%8F%90%E9%86%92%E8%AE%BE%E7%BD%AE + verify: # enter true to enable + placeholder: Just Do It # enter the comment box placeholder # Share share: default # options: jiathis, bdshare, addtoany, default diff --git a/layout/comment/index.ejs b/layout/comment/index.ejs index 95bdb444..beda9067 100644 --- a/layout/comment/index.ejs +++ b/layout/comment/index.ejs @@ -12,6 +12,8 @@ <%- partial('comment/isso') %> <% } else if (theme.comment.changyan.on) { %> <%- partial('comment/changyan') %> + <% } else if (theme.comment.valine.on) { %> + <%- partial('comment/valine') %> <% } %> <% } %> diff --git a/layout/comment/scripts.ejs b/layout/comment/scripts.ejs index 89c21efd..af2400ec 100644 --- a/layout/comment/scripts.ejs +++ b/layout/comment/scripts.ejs @@ -10,4 +10,6 @@ <%- partial('comment/isso', { script: true }) %> <% } else if (theme.comment.changyan.on) { %> <%- partial('comment/changyan', { script: true }) %> +<% } else if (theme.comment.valine.on) { %> + <%- partial('comment/valine', { script: true }) %> <% } %> diff --git a/layout/comment/valine.ejs b/layout/comment/valine.ejs new file mode 100644 index 00000000..c5c6dff1 --- /dev/null +++ b/layout/comment/valine.ejs @@ -0,0 +1,16 @@ +<% if (typeof(script) !== 'undefined' && script) { %> + + + +<% } else { %> +
+<% } %> \ No newline at end of file