Skip to content

Commit f5ae9cc

Browse files
authored
Merge pull request #1665 from future-architect/feature
タグ集計ロジックの不備を修正
2 parents 1af95e7 + 385254d commit f5ae9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hexo.extend.generator.register("tags", function(locals) {
1111
});
1212

1313
hexo.extend.helper.register('count_tags', function() {
14-
return this.site.posts.map(post => post.tags).flat().unique().length;
14+
return this.site.tags.length;
1515
});
1616

1717
hexo.extend.helper.register('ranking_tags', function() {

0 commit comments

Comments
 (0)