diff --git a/static/style.css b/static/style.css index cf76f9f..382cf0c 100644 --- a/static/style.css +++ b/static/style.css @@ -44,7 +44,7 @@ .project-item{ float: left; width: 200px; - /*height: 120px;*/ + height: 140px; margin-top: 20px; margin-left: 20px; border: 1px solid #ddd; diff --git a/template/app_doc/pro_list.html b/template/app_doc/pro_list.html index 9fb2326..809b781 100644 --- a/template/app_doc/pro_list.html +++ b/template/app_doc/pro_list.html @@ -60,8 +60,12 @@
作者:{{p.create_user}}
简介: + {% if p.intro == "" %} + 此文集没有填写简介 + {% else %} {{ p.intro | slice:'16' }}… {{ p.intro }} + {% endif %}