Add blog post preview
This commit is contained in:
parent
a47f18533b
commit
fa143f5ab4
4 changed files with 20 additions and 5 deletions
|
@ -18,7 +18,7 @@ namespace Website.Controllers
|
|||
public async Task<IActionResult> Index()
|
||||
{
|
||||
var post = await _blogRepo.GetLatestPostAsync();
|
||||
var model = new BlogPostViewModel(post);
|
||||
var model = new BlogPostPreviewViewModel(post);
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue