@(Model.Post.Title ?? "Post Details")
@if (!string.IsNullOrWhiteSpace(Model.Post.Description)) {@Model.Post.Description
}
Posted on @Model.Post.CreatedAt.ToDateTimeOffset().ToString("yyyy-MM-dd HH:mm")
@if (Model.Post.EditedAt.HasValue)
{
Updated on @Model.Post.EditedAt.Value.ToDateTimeOffset().ToString("yyyy-MM-dd HH:mm")
}
@if (!string.IsNullOrWhiteSpace(Model.Post.Description))
{
@if (Model.Post.Attachments.Any())
{
@Model.Post.Description
} @Html.Raw(Model.Post.Content)
@foreach (var attachment in Model.Post.Attachments)
{
}
@if (Model.Post.Categories.Any() || (Model.Post.Tags.Any()))
{
@if (attachment.MimeType!.StartsWith("image"))
{
}
else if (attachment.MimeType!.StartsWith("video"))
{
}
else if (attachment.MimeType!.StartsWith("audio"))
{
}
else
{
@attachment.Name
}
}
@foreach (var category in Model.Post.Categories)
{
@(!string.IsNullOrEmpty(category.Name) ? category.Name : category.Slug)
}
@foreach (var tag in Model.Post.Tags)
{
@(!string.IsNullOrEmpty(tag.Name) ? tag.Name : tag.Slug)
}
}
Post not found.