File tree Expand file tree Collapse file tree 3 files changed +23
-29
lines changed Expand file tree Collapse file tree 3 files changed +23
-29
lines changed Original file line number Diff line number Diff line change 1
1
<% if (theme .valine .enable ){ % >
2
+ <!-- Valine Comments -->
2
3
< div class = " comments vcomment" id= " comments" >< / div>
4
+ < script src= " //cdn1.lncld.net/static/js/3.0.4/av-min.js" >< / script>
5
+ < script src= " //unpkg.com/valine@latest/dist/Valine.min.js" >< / script>
6
+ <!-- Valine Comments script -->
7
+ < script>
8
+ var GUEST_INFO = [' nick' ,' mail' ,' link' ];
9
+ var guest_info = ' <%= theme.valine.guest_info %>' .split (' ,' ).filter (function (item ){
10
+ return GUEST_INFO .indexOf (item) > - 1
11
+ });
12
+ new Valine ({
13
+ el: ' #comments' ,
14
+ notify: ' <%= theme.valine.notify %>' == ' true' ,
15
+ verify: ' <%= theme.valine.verify %>' == ' true' ,
16
+ appId: " <%= theme.valine.appId %>" ,
17
+ appKey: " <%= theme.valine.appKey %>" ,
18
+ avatar: " <%= theme.valine.avatar %>" ,
19
+ placeholder: " <%= theme.valine.placeholder %>" ,
20
+ guest_info: guest_info .length == 0 ? GUEST_INFO : guest_info,
21
+ pageSize: " <%= theme.valine.pageSize %>"
22
+ })
23
+ < / script>
24
+ <!-- Valine Comments end -->
3
25
< % } %>
4
-
Original file line number Diff line number Diff line change @@ -20,30 +20,3 @@ lazyScripts.push('//s95.cnzz.com/z_stat.php?id=<%-theme.cnzz %>&web_id=<%-theme.
20
20
< % } %>
21
21
22
22
<% - partial (' plugins/dynamic-title' ) %>
23
-
24
-
25
- <!-- Valine Comments -->
26
- <% if (theme .valine .enable ){ % >
27
- < script src= " //cdn1.lncld.net/static/js/3.0.4/av-min.js" >< / script>
28
- < script src= " //unpkg.com/valine@latest/dist/Valine.min.js" >< / script>
29
- < script type= " text/javascript" >
30
- var notify = ' <%= theme.valine.notify %>' == true ? true : false ;
31
- var verify = ' <%= theme.valine.verify %>' == true ? true : false ;
32
- var GUEST_INFO = [' nick' ,' mail' ,' link' ];
33
- var guest_info = ' <%= theme.valine.guest_info %>' .split (' ,' ).filter (function (item ){
34
- return GUEST_INFO .indexOf (item) > - 1
35
- });
36
- guest_info = guest_info .length == 0 ? GUEST_INFO : guest_info;
37
- new Valine ({
38
- el: ' .vcomment' ,
39
- notify: notify,
40
- verify: verify,
41
- appId: " <%= theme.valine.appId %>" ,
42
- appKey: " <%= theme.valine.appKey %>" ,
43
- avatar: " <%= theme.valine.avatar %>" ,
44
- placeholder: " <%= theme.valine.placeholder %>" ,
45
- guest_info: guest_info,
46
- pageSize: " <%= theme.valine.pageSize %>"
47
- })
48
- < / script>
49
- < % } %>
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " hexo-theme-material-indigo" ,
3
- "version" : " 1.6.17 " ,
3
+ "version" : " 1.7.0 " ,
4
4
"description" : " Material Design theme for Hexo." ,
5
5
"keywords" : [
6
6
" hexo" ,
You can’t perform that action at this time.
0 commit comments