Update: 优化 valine 评论系统样式和配置

This commit is contained in:
XPoet 2020-03-25 22:55:41 +08:00
parent 53543b83ff
commit 0694550b6f
3 changed files with 10 additions and 7 deletions

View File

@ -53,7 +53,7 @@ valine:
# Get more information on http://ibruce.info/2015/04/04/busuanzi/ # Get more information on http://ibruce.info/2015/04/04/busuanzi/
busuanzi_count: busuanzi_count:
# count values only if the other configs are false # count values only if the other configs are false
enable: false enable: true
# custom uv span for the whole site # custom uv span for the whole site
site_uv: true site_uv: true
site_uv_header: site_uv_header:
@ -63,7 +63,7 @@ busuanzi_count:
site_pv_header: site_pv_header:
site_pv_footer: site_pv_footer:
# custom pv span for one page only # custom pv span for one page only
page_pv: false page_pv: true
page_pv_header: page_pv_header:
page_pv_footer: page_pv_footer:

View File

@ -1,15 +1,18 @@
<% if(theme.valine.enable && theme.valine.appid && theme.valine.appkey) { %> <% if(theme.valine.enable && theme.valine.appid && theme.valine.appkey) { %>
<div class="valine-container"> <div class="valine-container">
<script src='https://unpkg.com/valine@1.3.10/dist/Valine.min.js'></script> <script src='//unpkg.com/valine/dist/Valine.min.js'></script>
<div id="valine"></div> <!-- <script src='https://unpkg.com/valine@1.3.10/dist/Valine.min.js'></script>-->
<div id="vcomments"></div>
<script> <script>
new Valine({ new Valine({
el: '#valine', el: '#vcomments',
appId: '<%= theme.valine.appid %>', appId: '<%= theme.valine.appid %>',
appKey: '<%= theme.valine.appkey %>', appKey: '<%= theme.valine.appkey %>',
notify: '<%= theme.valine.notify %>', notify: '<%= theme.valine.notify %>',
verify: '<%= theme.valine.verify %>', verify: '<%= theme.valine.verify %>',
placeholder: '<%= theme.valine.placeholder %>' avatar: 'wavatar',
placeholder: '<%= theme.valine.placeholder %>',
lang: '<%= config.language%>'.toLowerCase()
}) })
</script> </script>
</div> </div>

View File

@ -1,7 +1,7 @@
@require '../variables.styl' @require '../variables.styl'
.valine-container { .valine-container {
#valine { #vcomments {
.vheader { .vheader {