@page "/blog/{post}" @using zotanpw.Backend @{ if (string.IsNullOrWhiteSpace((string)RouteData.Values["post"]!)) { return; } var post = BlogModel.Posts.FirstOrDefault(p => p.Shorthand == (string)RouteData.Values["post"]!); if (post == null) { Response.Redirect("/Error"); return; } ViewData["title"] = "blog"; ViewData["subtitle"] = post.Shorthand; ViewData["desc"] = post.Title; #if (DEBUG) post.UpdateContentAndMetadata(); #endif } @post.PublishedOn.ToString("yyyy-MM-dd") - @Utils.a_an(post.ReadTimeMinutes) @post.ReadTimeMinutes minute read (150 wpm)

@post.Title

@Html.Raw(post.Content)