From 0c8723afb98fc7312c1b9cb6331233a41a0d2344 Mon Sep 17 00:00:00 2001 From: "mail_yanpeng@163.com" Date: Sun, 28 Jun 2020 10:55:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B6=E4=BB=96=E7=9A=84=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/BlogController.go | 4 ++-- static/css/common.css | 4 +++- views/T.header.tpl | 4 ++-- views/blog.html | 2 +- views/us.html | 9 +++++---- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/controllers/BlogController.go b/controllers/BlogController.go index 4c05de0..d9b3d2b 100644 --- a/controllers/BlogController.go +++ b/controllers/BlogController.go @@ -205,8 +205,8 @@ func (this *BlogController) BlogsPage() { if num <= 0 { num = 1 } - if size < 15 { - size = 15 + if size < 20 { + size = 20 } if cat <= 0 { cat = -1 diff --git a/static/css/common.css b/static/css/common.css index 3b34af4..0285519 100644 --- a/static/css/common.css +++ b/static/css/common.css @@ -141,7 +141,6 @@ a{ } .blog-root{ - height: 100%; width: 68%; margin: 40px auto; } @@ -587,6 +586,9 @@ img { padding: 5px 0; color: #323232; } +.us-root a{ + color: #28a3ef !important; +} .blog-title{ display: flex; diff --git a/views/T.header.tpl b/views/T.header.tpl index 826394b..27ada73 100644 --- a/views/T.header.tpl +++ b/views/T.header.tpl @@ -12,8 +12,8 @@ - */}} +{{/* {{/* */}} diff --git a/views/blog.html b/views/blog.html index 3469056..29ff63f 100644 --- a/views/blog.html +++ b/views/blog.html @@ -27,7 +27,7 @@ -
+
{{str2html .Blog.BlogHtml}}
diff --git a/views/us.html b/views/us.html index 4884a25..9d923c2 100644 --- a/views/us.html +++ b/views/us.html @@ -5,13 +5,14 @@ {{template "nav" .}}
-
+

·项目源码: 点击查看

·项目框架:

-

golang 1.11

-

beego:1.7.2 beego官网

-

layui: layui官网

+

golang@1.11

+

beego@1.7.2 beego官网

+

vue@2.6.10

+

iviewui@4.20: iviewui官网

富文本编辑器: wangeditor官网

数据库: mysql(5.5.60-MariaDB)