@page @using OliverBooth.Data.Blog @model OliverBooth.Pages.Blog.Index @foreach (BlogPost post in Model.BlogPosts) {

@post.Title

@post.Published.ToString("MMMM dd, yyyy") • @Model.GetAuthor(post)?.Name

@Html.Raw(Model.SanitizeContent(Model.TrimContent(post.Body, out bool trimmed)))

if (trimmed) {

Read more...

} }