Various blog improvements
This commit is contained in:
parent
929adac910
commit
8e79aed647
8 changed files with 37 additions and 44 deletions
|
@ -17,7 +17,7 @@ namespace Website.Controllers
|
|||
public async Task<IActionResult> Index()
|
||||
{
|
||||
var post = await _blogRepo.GetLatestPostAsync();
|
||||
var model = new BlogPostPreviewViewModel(post);
|
||||
var model = new BlogPostSnippetViewModel(post);
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue