Various blog improvements
This commit is contained in:
parent
929adac910
commit
8e79aed647
8 changed files with 37 additions and 44 deletions
9
Website/ViewModels/BlogPostSnippetViewModel.cs
Normal file
9
Website/ViewModels/BlogPostSnippetViewModel.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
using Website.Models;
|
||||
|
||||
namespace Website.ViewModels
|
||||
{
|
||||
public class BlogPostSnippetViewModel:BlogPostViewModel
|
||||
{
|
||||
public BlogPostSnippetViewModel(BlogPost blogPost) : base(blogPost, false) => Content = Content.Length < 1000 ? Content : Content.Substring(0, 1000);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue