fix: post count tag.

pull/438/head
ruibaby 2019-12-22 21:34:38 +08:00
parent 5e91fc4f6a
commit 0fe4f95d97
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class PostTagDirective implements TemplateDirectiveModel {
env.setVariable("posts", builder.build().wrap(postService.listLatest(top)));
break;
case "count":
env.setVariable("count", builder.build().wrap(postService.count()));
env.setVariable("count", builder.build().wrap(postService.countByStatus(PostStatus.PUBLISHED)));
break;
case "archiveYear":
env.setVariable("archives", builder.build().wrap(postService.listYearArchives()));