Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiaoheiAh/hugo-theme-pure.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorotis <hdzee19@gmail.com>2019-10-16 10:26:14 +0300
committerotis <hdzee19@gmail.com>2019-10-16 10:26:14 +0300
commit4b89eab7c1093487fe91a111585229258a80fc2e (patch)
treef0f69da7ff92c9c1c5623f96ce7704efcb7c4dab /static
parente8bc6736fcb99792349fe087bbe4889872169882 (diff)
fix gitalk & add menu icon
Diffstat (limited to 'static')
-rw-r--r--static/js/insight.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/js/insight.js b/static/js/insight.js
index e58a6d3..1981f60 100644
--- a/static/js/insight.js
+++ b/static/js/insight.js
@@ -138,9 +138,9 @@
var tags = json.tags;
var categories = json.categories;
return {
- posts: posts.filter(FILTERS.POST).sort(function (a, b) { return WEIGHTS.POST(b) - WEIGHTS.POST(a); }),
- categories: categories.filter(FILTERS.CATEGORY).sort(function (a, b) { return WEIGHTS.CATEGORY(b) - WEIGHTS.CATEGORY(a); }),
- tags: tags.filter(FILTERS.TAG).sort(function (a, b) { return WEIGHTS.TAG(b) - WEIGHTS.TAG(a); })
+ posts: posts.filter(FILTERS.POST).sort(function (a, b) { return WEIGHTS.POST(b) - WEIGHTS.POST(a); }).slice(0,5),
+ categories: categories.filter(FILTERS.CATEGORY).sort(function (a, b) { return WEIGHTS.CATEGORY(b) - WEIGHTS.CATEGORY(a); }).slice(0,5),
+ tags: tags.filter(FILTERS.TAG).sort(function (a, b) { return WEIGHTS.TAG(b) - WEIGHTS.TAG(a); }).slice(0,5)
};
}