From b735661d769bb383d0469b73c2826eb9dc543819 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 17 Feb 2017 22:25:50 +0100 Subject: [PATCH] Fixes the blog index --- Yavsc/Views/Blogspot/Index.cshtml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Yavsc/Views/Blogspot/Index.cshtml b/Yavsc/Views/Blogspot/Index.cshtml index dfe7eeb0..8c9912a4 100644 --- a/Yavsc/Views/Blogspot/Index.cshtml +++ b/Yavsc/Views/Blogspot/Index.cshtml @@ -39,9 +39,7 @@ @item.Title - - @((item.Content.Length > 120) ? item.Content.Substring(0, 120) + "..." : item.Content.Substring(0, 120)) - + @((item.Content?.Length > 120) ? item.Content.Substring(0, 120) + " ..." : item.Content) (@item.Author.UserName , posté le @item.DateCreated.ToString("dddd d MMM yyyy à H:mm")