hexo-theme-hipaper-keyboarddaily 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<% if (theme.duoshuo_shortname){ %>
|
|
2
|
-
<div id="comment">
|
|
2
|
+
<div id="comment" style="display: none;">
|
|
3
3
|
|
|
4
4
|
<!-- 多说评论框 start -->
|
|
5
5
|
<div class="ds-thread" data-thread-key="<%- config.root %><%- post.path %>" data-title="<%- post.title %>" data-url="<%- post.permalink %>"></div>
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<!-- UY END -->
|
|
62
62
|
</section>
|
|
63
63
|
<% } else if (theme.wumii) {%>
|
|
64
|
-
<div id="comment">
|
|
64
|
+
<div id="comment" style="display: none;">
|
|
65
65
|
<script type="text/javascript" id="wumiiComments">
|
|
66
66
|
var wumiiPermaLink = "<%- post.permalink %>"; //请用代码生成文章永久的链接
|
|
67
67
|
var wumiiTitle = "<%- post.title %>"; //请用代码生成文章标题
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<script type="text/javascript" src="http://widget.wumii.cn/ext/cw/widget"></script>
|
|
72
72
|
</div>
|
|
73
73
|
<% } else if (theme.livere_shortname) {%>
|
|
74
|
-
<div id="comment">
|
|
74
|
+
<div id="comment" style="display: none;">
|
|
75
75
|
<!-- 来必力City版安装代码 -->
|
|
76
76
|
<div id="lv-container" data-id="city" data-uid="<%- theme.livere_shortname %>">
|
|
77
77
|
<script type="text/javascript">
|
package/package.json
CHANGED
package/source/js/insight.js
CHANGED
|
@@ -166,10 +166,10 @@
|
|
|
166
166
|
var tags = extractToSet(json, 'tags');
|
|
167
167
|
var categories = extractToSet(json, 'categories');
|
|
168
168
|
return {
|
|
169
|
-
posts: posts.filter(FILTERS.POST).sort(function (a, b) { return WEIGHTS.POST(b) - WEIGHTS.POST(a); }).slice(0,
|
|
170
|
-
pages: pages.filter(FILTERS.PAGE).sort(function (a, b) { return WEIGHTS.PAGE(b) - WEIGHTS.PAGE(a); }).slice(0,
|
|
171
|
-
categories: categories.filter(FILTERS.CATEGORY).sort(function (a, b) { return WEIGHTS.CATEGORY(b) - WEIGHTS.CATEGORY(a); }).slice(0,
|
|
172
|
-
tags: tags.filter(FILTERS.TAG).sort(function (a, b) { return WEIGHTS.TAG(b) - WEIGHTS.TAG(a); }).slice(0,
|
|
169
|
+
posts: posts.filter(FILTERS.POST).sort(function (a, b) { return WEIGHTS.POST(b) - WEIGHTS.POST(a); }).slice(0, 20),
|
|
170
|
+
pages: pages.filter(FILTERS.PAGE).sort(function (a, b) { return WEIGHTS.PAGE(b) - WEIGHTS.PAGE(a); }).slice(0, 20),
|
|
171
|
+
categories: categories.filter(FILTERS.CATEGORY).sort(function (a, b) { return WEIGHTS.CATEGORY(b) - WEIGHTS.CATEGORY(a); }).slice(0, 20),
|
|
172
|
+
tags: tags.filter(FILTERS.TAG).sort(function (a, b) { return WEIGHTS.TAG(b) - WEIGHTS.TAG(a); }).slice(0, 20)
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
|