diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml b/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml index 9c44b0feb2..eb4bf912f7 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Detail.cshtml @@ -169,46 +169,49 @@ @L["EditProfile"] } -
-

More from Blog

- @for (var index = 0; index < Model.LatestPosts.Count && index < 5; index++) + @if (Model.LatestPosts.Count > 1) { - if (Model.LatestPosts[index].Id != Model.Post.Id) +
+

More from Blog

+ @for (var index = 0; index < Model.LatestPosts.Count && index < 5; index++) { - var post = Model.LatestPosts[index]; + if (Model.LatestPosts[index].Id != Model.Post.Id) + { + var post = Model.LatestPosts[index]; -
-
-
-
+ + } } } @@ -435,50 +438,53 @@ else }
-

More from @CultureInfo.CurrentCulture.TextInfo.ToTitleCase(Model.Post.Writer.UserName)

- @for (var index = 0; index < Model.PostsList.Count; index++) + @if (Model.PostsList.Count > 1) { - if (Model.PostsList[index].Id != Model.Post.Id) +

More from @CultureInfo.CurrentCulture.TextInfo.ToTitleCase(Model.Post.Writer.UserName)

+ for (var index = 0; index < Model.PostsList.Count; index++) { - var post = Model.PostsList[index]; -
-
+ if (Model.PostsList[index].Id != Model.Post.Id) + { + var post = Model.PostsList[index]; +
+
- - - - - - @L["Blog"].Value.ToUpper() - -
-
- -

- - @post.Title - -

-

- - @post.Description.TruncateWithPostfix(150) - - @L["ReadMore"] -

-
-
-
- +
+ +

+ + @post.Title + +

+

+ + @post.Description.TruncateWithPostfix(150) + + @L["ReadMore"] +

+
+
+
+ +
-
- } + } + } }