diff --git a/controllers/BlogController.go b/controllers/BlogController.go index 09fe271..0a65ac8 100644 --- a/controllers/BlogController.go +++ b/controllers/BlogController.go @@ -177,8 +177,8 @@ func (this *BlogController) BlogsPage() { if num <= 0 { num = 1 } - if size < 5 { - size = 5 + if size < 15 { + size = 15 } if cat <= 0 { cat = -1 diff --git a/static/css/blog.css b/static/css/blog.css index 9b94e30..0284c26 100644 --- a/static/css/blog.css +++ b/static/css/blog.css @@ -15,12 +15,12 @@ position: fixed; top: 60px; left: 20px; - width: 260px; + width: 300px; height: 100%; background-color: #f9f9f9; } .comms-root{ - margin: 50px 10% 0 300px; + margin: 50px 10% 0 350px; } .comms-root a{ diff --git a/static/css/common.css b/static/css/common.css index 27216d1..b30e979 100644 --- a/static/css/common.css +++ b/static/css/common.css @@ -1,4 +1,5 @@ body { + font-size: 14px !important; background: #f5f7f9; } diff --git a/views/blog.html b/views/blog.html index 817d3a7..103e67e 100644 --- a/views/blog.html +++ b/views/blog.html @@ -14,7 +14,7 @@
-
+
文章: {{.Blog.User.BlogCount}}
@@ -24,7 +24,7 @@
-
+
评论: {{.Blog.User.BlogComment}}
@@ -38,7 +38,7 @@ {{range .Top}}

{{.Title}}

+ style="max-width:290px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{{.Title}}

{{end}}