This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Replace CRLF with LF * Remove google_plus as the service is discontinued earlier this year
- Loading branch information
1 parent
99c75cd
commit 9430724
Showing
4 changed files
with
32 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<% if(theme.comment.valine.on) { %> | ||
<!-- Valine --> | ||
<div class="vcomments"></div> | ||
<script src="//unpkg.com/valine"></script> | ||
<script> | ||
var GUEST = ['nick','mail','link']; | ||
var meta = '<%= theme.comment.valine.meta %>'; | ||
meta = meta.split(',').filter(function (item) { | ||
return GUEST.indexOf(item)>-1; | ||
}); | ||
var avatarcdn = '<%= theme.comment.valine.avatar_cdn %>' == true; | ||
new Valine({ | ||
el: '.vcomments', | ||
notify: "<%= theme.comment.valine.notify %>", | ||
verify: "<%= theme.comment.valine.verify %>", | ||
app_id: "<%= theme.comment.valine.appid %>", | ||
app_key: "<%= theme.comment.valine.appkey %>", | ||
placeholder: "<%= theme.comment.valine.placeholder %>", | ||
avatar:"<%= theme.comment.valine.avatar %>", | ||
recordIP:"<%= theme.comment.valine.recordip %>", | ||
visitor: "<%= theme.comment.valine.visitor %>" | ||
}); | ||
</script> | ||
<% } %> | ||
<% if(theme.comment.valine.on) { %> | ||
<!-- Valine --> | ||
<div class="vcomments"></div> | ||
<script src="//unpkg.com/valine"></script> | ||
<script> | ||
var GUEST = ['nick','mail','link']; | ||
var meta = '<%= theme.comment.valine.meta %>'; | ||
meta = meta.split(',').filter(function (item) { | ||
return GUEST.indexOf(item)>-1; | ||
}); | ||
var avatarcdn = '<%= theme.comment.valine.avatar_cdn %>' == true; | ||
new Valine({ | ||
el: '.vcomments', | ||
notify: "<%= theme.comment.valine.notify %>", | ||
verify: "<%= theme.comment.valine.verify %>", | ||
app_id: "<%= theme.comment.valine.appid %>", | ||
app_key: "<%= theme.comment.valine.appkey %>", | ||
placeholder: "<%= theme.comment.valine.placeholder %>", | ||
avatar:"<%= theme.comment.valine.avatar %>", | ||
recordIP:"<%= theme.comment.valine.recordip %>", | ||
visitor: "<%= theme.comment.valine.visitor %>" | ||
}); | ||
</script> | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<% if (theme.comment.valine.visitor) { %> | ||
<span id="<%- url_for(page.path) %>" class="leancloud-visitors" data-flag-title="<%= page.title %>"> | ||
<i class="fa fa-eye"></i> | ||
<span class="post-meta-item-text"><%= __('counter.views') + (':')%> </span> | ||
<i class="leancloud-visitors-count">1000000</i> | ||
</span> | ||
<% } %> | ||
<% if (theme.comment.valine.visitor) { %> | ||
<span id="<%- url_for(page.path) %>" class="leancloud-visitors" data-flag-title="<%= page.title %>"> | ||
<i class="fa fa-eye"></i> | ||
<span class="post-meta-item-text"><%= __('counter.views') + (':')%> </span> | ||
<i class="leancloud-visitors-count">1000000</i> | ||
</span> | ||
<% } %> |