Permalink
Browse files

Update valine comment system version (#345)

* Update valine comment system version

* Update valine visitor annotation

* Update valine instruction
  • Loading branch information...
xCss authored and sli1989 committed Jul 14, 2018
1 parent ec18888 commit 7d17575f01c94188cff7e5caaa122fc0384ffac9
@@ -494,7 +494,7 @@ changyan:
# You can get your appid and appkey from https://leancloud.cn
# more info please open https://valine.js.org
valine:
enable: false
enable: false # When enable is set to be true, leancloud_visitors is recommended to be closed for the re-initialization problem within different leancloud adk version.
appid: # your leancloud application appid
appkey: # your leancloud application appkey
notify: false # mail notifier , https://github.com/xCss/Valine/wiki
@@ -503,6 +503,7 @@ valine:
avatar: mm # gravatar style
guest_info: nick,mail,link # custom comment header
pageSize: 10 # pagination size
visitor: false # leancloud-counter-security is not supported for now. When visitor is set to be true, appid and appkey are recommended to be the same as leancloud_visitors' for counter compatibility. Article reading statistic https://valine.js.org/visitor.html
# Support for youyan comments system.
@@ -212,7 +212,7 @@
{% endif %}
{# LeanCould PageView #}
{% if theme.leancloud_visitors.enable %}
{% if theme.leancloud_visitors.enable or (theme.valine.enable and theme.valine.appid and theme.valine.appkey and theme.valine.visitor) %}
<span id="{{ url_for(post.path) }}" class="leancloud_visitors" data-flag-title="{{ post.title }}">
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
@@ -1,4 +1,4 @@
{% if theme.leancloud_visitors.enable %}
{% if theme.leancloud_visitors.enable and !theme.valine.visitor %}
{# custom analytics part create by xiamo; edited by LEAFERx #}
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.4.js"></script>
@@ -20,8 +20,9 @@
appKey: '{{ theme.valine.appkey }}',
placeholder: '{{ theme.valine.placeholder }}',
avatar:'{{ theme.valine.avatar }}',
guest_info:guest,
meta:guest,
pageSize:'{{ theme.valine.pageSize }}' || 10,
visitor: {{ theme.valine.visitor }}
});
</script>
{% endif %}

4 comments on commit 7d17575

@reuixiy

This comment has been minimized.

reuixiy replied Jul 14, 2018

My blog has been used. 😄
Thank you for your awesome contributions! 👍

@cugxuan

This comment has been minimized.

cugxuan replied Jul 19, 2018

My blog has been used too.
It works if you modify the files according to the changes.
So excited! I could use its new features before nextV6.4.0!
Thank you so much!

@sli1989

This comment has been minimized.

Collaborator

sli1989 replied Jul 19, 2018

@cugxuan has been merged, just pull the new master.

@cugxuan

This comment has been minimized.

cugxuan replied Jul 19, 2018

@sli1989 Actually,I'm waiting for the the new release.
I have a bit of obsessive-compulsive disorder to use the stable version.
Thanks!

Please sign in to comment.