Loading ...
@page "/blog/{year:int}/{month:int}/{day:int}/{slug}" @using Humanizer @using OliverBooth.Data.Blog @using OliverBooth.Services @inject IBlogPostService BlogPostService @model Article @if (Model.Post is not { } post) { return; } @{ ViewData["Post"] = post; ViewData["Title"] = post.Title; IBlogAuthor author = post.Author; DateTimeOffset published = post.Published; } @switch (post.Visibility) { case BlogPostVisibility.Private:
@author.DisplayName • Published @published.Humanize() @if (post.Updated is { } updated) { • Updated @updated.Humanize() } @if (post.EnableComments) { • 0 Comments }
Loading ...
Comments are not enabled for this post.
}