Update: 优化 valine 评论系统样式和配置
This commit is contained in:
parent
53543b83ff
commit
0694550b6f
|
@ -53,7 +53,7 @@ valine:
|
|||
# Get more information on http://ibruce.info/2015/04/04/busuanzi/
|
||||
busuanzi_count:
|
||||
# count values only if the other configs are false
|
||||
enable: false
|
||||
enable: true
|
||||
# custom uv span for the whole site
|
||||
site_uv: true
|
||||
site_uv_header:
|
||||
|
@ -63,7 +63,7 @@ busuanzi_count:
|
|||
site_pv_header:
|
||||
site_pv_footer:
|
||||
# custom pv span for one page only
|
||||
page_pv: false
|
||||
page_pv: true
|
||||
page_pv_header:
|
||||
page_pv_footer:
|
||||
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
<% if(theme.valine.enable && theme.valine.appid && theme.valine.appkey) { %>
|
||||
<div class="valine-container">
|
||||
<script src='https://unpkg.com/valine@1.3.10/dist/Valine.min.js'></script>
|
||||
<div id="valine"></div>
|
||||
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
|
||||
<!-- <script src='https://unpkg.com/valine@1.3.10/dist/Valine.min.js'></script>-->
|
||||
<div id="vcomments"></div>
|
||||
<script>
|
||||
new Valine({
|
||||
el: '#valine',
|
||||
el: '#vcomments',
|
||||
appId: '<%= theme.valine.appid %>',
|
||||
appKey: '<%= theme.valine.appkey %>',
|
||||
notify: '<%= theme.valine.notify %>',
|
||||
verify: '<%= theme.valine.verify %>',
|
||||
placeholder: '<%= theme.valine.placeholder %>'
|
||||
avatar: 'wavatar',
|
||||
placeholder: '<%= theme.valine.placeholder %>',
|
||||
lang: '<%= config.language%>'.toLowerCase()
|
||||
})
|
||||
</script>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
@require '../variables.styl'
|
||||
.valine-container {
|
||||
|
||||
#valine {
|
||||
#vcomments {
|
||||
|
||||
.vheader {
|
||||
|
||||
|
|
Loading…
Reference in New Issue