@using Humanizer @using Microsoft.AspNetCore.Mvc.TagHelpers @using OliverBooth.Common.Data.Blog @using OliverBooth.Common.Services @model IBlogPost @inject IBlogPostService BlogPostService @{ IBlogAuthor author = Model.Author; DateTimeOffset published = Model.Published; DateTimeOffset? updated = Model.Updated; DateTimeOffset time = updated ?? published; string verb = updated is null ? "Published" : "Updated"; }

@Model.Title

@author.DisplayName @author.DisplayName • @verb @time.Humanize()

@Html.Raw(BlogPostService.RenderExcerpt(Model, out bool trimmed))
@if (trimmed || Model.Excerpt is not null) {

Read more...

}