@if (!string.IsNullOrWhiteSpace(post.Title) || !string.IsNullOrWhiteSpace(post.Description))
{
@if (!string.IsNullOrWhiteSpace(post.Title))
{
}
@if (!string.IsNullOrWhiteSpace(post.Description))
{
@post.Description
}
}
@post.Content
@if (post.Attachments.Any())
{
@foreach (var attachment in post.Attachments)
{
@if (attachment.MimeType!.StartsWith("image"))
{
}
else if (attachment.MimeType!.StartsWith("video"))
{
}
else if (attachment.MimeType!.StartsWith("audio"))
{
}
else
{
@attachment.Name
}
}
}
@if (post.Categories.Any() || post.Tags.Any())
{
@foreach (var category in post.Categories)
{
@(!string.IsNullOrEmpty(category.Name) ? category.Name : category.Slug)
}
@foreach (var tag in post.Tags)
{
@(!string.IsNullOrEmpty(tag.Name) ? tag.Name : tag.Slug)
}
}
Posted on @post.CreatedAt.ToDateTimeOffset().ToString("yyyy-MM-dd")