update valine comment plugin

This commit is contained in:
XPoet 2020-04-24 22:02:10 +08:00
parent cd153f5fb9
commit 43d870327d
2 changed files with 9 additions and 10 deletions

View File

@ -1,7 +1,7 @@
# theme basic info # theme basic info
theme_info: theme_info:
name: ILS name: ILS
version: 1.0 version: 1.0.2
author: XPoet author: XPoet
repository: https://github.com/XPoet/hexo-theme-ils repository: https://github.com/XPoet/hexo-theme-ils
@ -25,12 +25,11 @@ comments:
# Valine. # Valine.
# more info please open https://github.com/xCss/Valine # more info please open https://github.com/xCss/Valine
valine: valine:
enable: false enable: false # true or false
appid: # your leancloud application appid appid: # your leancloud application appid
appkey: # your leancloud application appkey appkey: # your leancloud application appkey
notify: false # mail notifier, https://github.com/xCss/Valine/wiki meta: # type: Array, default: ['nick','mail','link']
verify: false # Verification code placeholder: Please share your thoughts with us in the comments below! #your placeholder
placeholder: your placeholder
# Gitalk # Gitalk
# For more information: https://gitalk.github.io, https://github.com/gitalk/gitalk # For more information: https://gitalk.github.io, https://github.com/gitalk/gitalk

View File

@ -11,9 +11,9 @@
el: '#vcomments', el: '#vcomments',
appId: '<%= theme.comments.valine.appid %>', appId: '<%= theme.comments.valine.appid %>',
appKey: '<%= theme.comments.valine.appkey %>', appKey: '<%= theme.comments.valine.appkey %>',
notify: '<%= theme.comments.valine.notify %>', meta: '<%= theme.comments.valine.meta %>',
verify: '<%= theme.comments.valine.verify %>',
avatar: 'wavatar', avatar: 'wavatar',
enableQQ: true,
placeholder: '<%= theme.comments.valine.placeholder %>', placeholder: '<%= theme.comments.valine.placeholder %>',
lang: '<%= config.language %>'.toLowerCase() lang: '<%= config.language %>'.toLowerCase()
}) })