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 75cc0a7a2a..63673ff292 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 @@ -161,6 +161,10 @@ namespace Volo.Blogging.Posts private List SplitTags(string tags) { + if (tags.IsNullOrWhiteSpace()) + { + return new List(); + } return new List(tags.Split(",").Select(t=>t.Trim())); } } diff --git a/modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/en.json b/modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/en.json index 6094642afe..8b0ab73c2b 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/en.json +++ b/modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/en.json @@ -10,7 +10,10 @@ "PopularTags": "Popular Tags", "Read": "Read", "LastPosts": "Last Posts", + "LeaveComment": "Leave Comment", + "TagsInThisArticle": "Tags in this article", "Posts": "Posts", + "Edit": "Edit", "Comment": "Comment", "WhatIsNew": "What is new?" } diff --git a/modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/tr.json b/modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/tr.json index 513d596206..be713a517b 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/tr.json +++ b/modules/blogging/src/Volo.Blogging.Web/Localization/Resources/Blogging/Web/tr.json @@ -3,14 +3,17 @@ "texts": { "Menu:Blogs": "Blog", "Title": "Başlık", - "ContinueReading": "Okumaya Devam", + "ContinueReading": "Devamı...", "DaysAgo": "Gün Önce", "Content": "İçerik", "SeeAll": "Hepsini Gör", "PopularTags": "Popüler Etiketler", "Read": "Okunma", "LastPosts": "Son Yazılar", + "LeaveComment": "Yorum Bırak", + "TagsInThisArticle": "Makalenin Etiketleri", "Posts": "Yazılar", + "Edit": "Düzelt", "Comment": "Yorum", "WhatIsNew": "Yeniler" } 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 f02d6a8851..cdc8fb5636 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 @@ -96,7 +96,7 @@
-
Tags in this article
+
@L["TagsInThisArticle"]
@foreach (var tag in Model.Post.Tags) { @tag.Name 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 e9f078f93b..18910c48d7 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 @@ -1,6 +1,5 @@ @page @inherits Volo.Blogging.Pages.Blog.BloggingPage -@using System.Net @using Microsoft.AspNetCore.Authorization @using Volo.Blogging @using Volo.Blogging.Pages.Blog.Posts