From 24d0049ff966ea994746028f37c304c3918f1565 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Thu, 4 Jan 2018 17:00:39 +0100 Subject: [PATCH] blog photo size --- Yavsc/Views/Blogspot/Index.cshtml | 4 ++-- Yavsc/Views/Blogspot/Title.cshtml | 2 +- Yavsc/wwwroot/css/main/site.css | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) 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 {