diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml
index 2b35080328..fadaaab269 100644
--- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml
+++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml
@@ -15,9 +15,3 @@
@blog.Name
}
-
-
-
-
-
-
diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml.cs b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml.cs
index 672b1434ad..cf16556c66 100644
--- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml.cs
+++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Index.cshtml.cs
@@ -14,9 +14,6 @@ namespace Volo.Blogging.Pages.Blog
public IReadOnlyList Blogs { get; private set; }
- [BindProperty]
- public BlogIndexViewModel Blog { get; set; }
-
public IndexModel(IBlogAppService blogAppService)
{
_blogAppService = blogAppService;
@@ -36,33 +33,5 @@ namespace Volo.Blogging.Pages.Blog
return Page();
}
-
- public async Task OnPostAsync()
- {
- await _blogAppService.Create(ObjectMapper.Map(Blog));
-
- var result = await _blogAppService.GetListAsync();
-
- if (result.Items.Count == 1)
- {
- var blog = result.Items[0];
- return RedirectToPage("./Posts/Index", new { blogShortName = blog.ShortName});
- }
-
- Blogs = result.Items;
-
- return Page();
- }
-
- public class BlogIndexViewModel
- {
- [Required]
- public string Name { get; set; }
-
- [Required]
- public string ShortName { get; set; }
-
- public string Description { get; set; }
- }
}
}
\ No newline at end of file
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 7f1fca68fd..e7aa591fbc 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
@@ -27,7 +27,7 @@
@L["Volosoft"]
- BLOG
+ @L["Blog"]
@@ -62,8 +62,8 @@