diff --git a/pom.xml b/pom.xml
index 5c880b3a3..9ba28af17 100755
--- a/pom.xml
+++ b/pom.xml
@@ -146,14 +146,6 @@
${hutool-all.version}
-
-
- org.springframework.boot
- spring-boot-devtools
- true
- true
-
-
com.upyun
@@ -172,18 +164,18 @@
- nexus-aliyun
- Nexus aliyun
- http://maven.aliyun.com/nexus/content/groups/public/
-
- true
-
-
- false
-
+ aliyun
+ http://maven.aliyun.com/nexus/content/groups/public
+
+
+ aliyun
+ http://maven.aliyun.com/nexus/content/groups/public
+
+
+
diff --git a/src/main/java/cc/ryanc/halo/web/controller/front/FrontPageController.java b/src/main/java/cc/ryanc/halo/web/controller/front/FrontPageController.java
index ca3ff03b7..a8c43eac1 100644
--- a/src/main/java/cc/ryanc/halo/web/controller/front/FrontPageController.java
+++ b/src/main/java/cc/ryanc/halo/web/controller/front/FrontPageController.java
@@ -76,8 +76,9 @@ public class FrontPageController extends BaseController {
if(null==post){
return this.renderNotFound();
}
- model.addAttribute("comments", CommentUtil.getComments(comments.getContent()));
model.addAttribute("post", post);
+ model.addAttribute("comments", CommentUtil.getComments(comments.getContent()));
+ model.addAttribute("commentsCount", comments.getTotalElements());
postService.updatePostView(post);
return this.render("page");
}