@model FastBlog.Core.Models.Blogs.Blog

@{
    ViewData["Title"] = Model.Metadata.Title;
}

@if(DateTime.UtcNow < Model.Metadata.CreatedAt)
{
    <div class="alert alert-important">
        <p class="alert-title">Unpublished blog</p>
        <p>This blog would not be visible and accessible until @Model.Metadata.CreatedAt.ToString("g")</p>
    </div>
}

@await Html.PartialAsync("Blogs/Content", Model)

<br>

<div class="container">
    <hr/>
    @await Html.PartialAsync("Blogs/ManageCard", Model.Metadata)
</div>