diff --git a/Yavsc/Views/Blogspot/Index.cshtml b/Yavsc/Views/Blogspot/Index.cshtml index 201f40de..d126760a 100644 --- a/Yavsc/Views/Blogspot/Index.cshtml +++ b/Yavsc/Views/Blogspot/Index.cshtml @@ -67,9 +67,9 @@
-@if (first.Photo==null) { } -else {@first.Title} @first.Title +@if (first.Photo==null) { } +else {@first.Title} @((first.Content?.Length > 120) ? first.Content.Substring(0, 120) + " ..." : first.Content) diff --git a/Yavsc/Views/Blogspot/Title.cshtml b/Yavsc/Views/Blogspot/Title.cshtml index a15535e0..688b3dfb 100644 --- a/Yavsc/Views/Blogspot/Title.cshtml +++ b/Yavsc/Views/Blogspot/Title.cshtml @@ -27,7 +27,7 @@ - + @((item.Content?.Length > 120) ? item.Content.Substring(0, 122) + " ..." : item.Content) diff --git a/Yavsc/wwwroot/css/main/site.css b/Yavsc/wwwroot/css/main/site.css index 3a5c2f38..e6d87b26 100644 --- a/Yavsc/wwwroot/css/main/site.css +++ b/Yavsc/wwwroot/css/main/site.css @@ -374,6 +374,8 @@ footer { .blogphoto { float: left; margin: 1em; + max-width: 100em; + max-height: 100em; } .dl-horizontal dd {