diff --git a/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs b/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs index 56a6bf3682..48bbd7e65e 100644 --- a/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs +++ b/modules/blogging/src/Volo.Blogging.Application/Volo/Blogging/Posts/PostAppService.cs @@ -53,6 +53,11 @@ namespace Volo.Blogging.Posts postDto.CommentCount = await _commentRepository.GetCommentCountOfPostAsync(postDto.Id); } + foreach (var postDto in postDtos) + { + postDto.Tags = await GetTagsOfPost(postDto.Id); + } + foreach (var postDto in postDtos) { if (postDto.CreatorId.HasValue) diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml index 38d8fb93f7..9940485aa6 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml @@ -41,35 +41,35 @@ @if (!string.IsNullOrWhiteSpace(Model.Blog.Facebook)) { | - + } @if (!string.IsNullOrWhiteSpace(Model.Blog.Twitter)) { | - + } @if (!string.IsNullOrWhiteSpace(Model.Blog.Instagram)) { | - + } @if (!string.IsNullOrWhiteSpace(Model.Blog.Github)) { | - + } @if (!string.IsNullOrWhiteSpace(Model.Blog.StackOverflow)) { | - + } diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml index 70a5250dca..eee2ff4498 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml @@ -31,7 +31,14 @@