diff --git a/_config.yml b/_config.yml index 5552e27..ef424a0 100755 --- a/_config.yml +++ b/_config.yml @@ -67,7 +67,7 @@ article: ######## Comments ######## comments: - service: utterances # utterances + service: # utterances, valine # utterances # https://utteranc.es/ utterances: @@ -77,19 +77,33 @@ comments: theme: light: github-light dark: github-dark + valine: + js: https://cdn.jsdelivr.net/npm/valine@1.4/dist/Valine.min.js + appId: # your appId + appKey: # your appKey + placeholder: + meta: [nick,mail,link] # valine comment header info + requiredFields: [nick,mail] + enableQQ: true # Unstable avatar link + recordIP: false # Record commenter IP + avatar: robohash # gravatar style https://valine.js.org/avatar + pageSize: 10 # comment list page size + lang: zh-cn + highlight: true + mathJax: false ######## Footer ######## footer: social: - - icon: '' - url: /atom.xml - - icon: '' - url: / - - icon: '' - url: / - - icon: '' - url: / + # - icon: '' + # url: /atom.xml + # - icon: '' + # url: / + # - icon: '' + # url: / + # - icon: '' + # url: / license: '[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)' source: #'[GitHub](https://github.com/xaoxuu/hexo-theme-stellar)' diff --git a/layout/_partial/plugins/comments/valine/layout.ejs b/layout/_partial/plugins/comments/valine/layout.ejs new file mode 100644 index 0000000..d177a66 --- /dev/null +++ b/layout/_partial/plugins/comments/valine/layout.ejs @@ -0,0 +1,19 @@ +<% +function layoutDiv() { + var el = ''; + el += '
'; + return el; +} +%> + +<%- layoutDiv() %> diff --git a/layout/_partial/plugins/comments/valine/script.ejs b/layout/_partial/plugins/comments/valine/script.ejs new file mode 100644 index 0000000..ca71ac8 --- /dev/null +++ b/layout/_partial/plugins/comments/valine/script.ejs @@ -0,0 +1,41 @@ +<%- js(theme.comments.valine.js) %> + diff --git a/scripts/tags/about.js b/scripts/tags/about.js index 371669c..9dd2226 100644 --- a/scripts/tags/about.js +++ b/scripts/tags/about.js @@ -17,14 +17,16 @@ hexo.extend.tag.register('about', function(args, content) { el += '