Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Cleanup (#263)
Browse files Browse the repository at this point in the history
* Replace CRLF with LF

* Remove google_plus as the service is discontinued earlier this year
  • Loading branch information
marcofranssen authored and ppoffice committed Oct 22, 2019
1 parent 99c75cd commit 9430724
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 34 deletions.
3 changes: 1 addition & 2 deletions _config.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ customize:
social_links: # for more icons, please see http://fontawesome.io/icons/#brand
twitter: /
facebook: /
google-plus: /
stack-overflow: /
github: https://github.com/ppoffice/hexo-theme-hueman
weibo: /
rss: /
Expand Down Expand Up @@ -111,6 +111,5 @@ miscellaneous:
fb_app_id:
fb_admins:
twitter_id:
google_plus:
links:
Hexo: http://hexo.io
48 changes: 24 additions & 24 deletions layout/comment/valine.ejs
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>
<% } %>
1 change: 0 additions & 1 deletion layout/common/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
fb_app_id: theme.miscellaneous.open_graph.fb_app_id,
fb_admins: theme.miscellaneous.open_graph.fb_admins,
twitter_id: theme.miscellaneous.open_graph.twitter_id,
google_plus: theme.miscellaneous.open_graph.google_plus,
}) %>
<%- meta(page) %>

Expand Down
14 changes: 7 additions & 7 deletions layout/common/post/valinecounter.ejs
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>
<% } %>

0 comments on commit 9430724

Please sign in to comment.