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]; -