@page "/blog/{post}"
@model BlogPostModel
@using zotanpw.Backend

@{
	if (Model.Post == null)
		return;

	ViewData["title"] = "blog";
	ViewData["subtitle"] = Model.Post.Shorthand;
	ViewData["desc"] = Model.Post.Title;
	#if (DEBUG)
	Model.Post.UpdateContentAndMetadata();
	#endif
}

<b>@Model.Post.PublishedOn.ToString("yyyy-MM-dd")</b> - @Utils.a_an(Model.Post.ReadTimeMinutes) @Model.Post.ReadTimeMinutes minute read (150 wpm)
<h1 id="post">@Model.Post.Title</h1>
<div style="text-align: justify">
	@Html.Raw(Model.Post.Content)
</div>
