+
@Model.BlogPost.Title
+
+
+ @@@Model.BlogPost.Author?.UserName
+
+ @Model.BlogPost.CreationTime
+
+ @await Component.InvokeAsync("ContentFragment", new { contentDto = Model.BlogPost })
+
+ @if (Model.BlogPost.LastModificationTime != null)
{
- if (contentFragment.Type == ContentConsts.Markdown)
- {
- @Html.Raw(await MarkdownRenderer.RenderAsync(contentFragment.GetProperty("Content"), allowHtmlTags: true, preventXSS: true))
- }
- else if (contentFragment.Type == ContentConsts.Widget)
- {
- @await Component.InvokeAsync(contentFragment.GetProperty("Type"), contentFragment.ExtraProperties.ConvertToDynamicObject())
- }
+ @L["LastModification"].Value : @Model.BlogPost.LastModificationTime
}
-
- @if (Model.BlogPost.LastModificationTime != null)
- {
- @L["LastModification"].Value : @Model.BlogPost.LastModificationTime
- }
-
-
+
+
- @if (GlobalFeatureManager.Instance.IsEnabled
())
+ @if (GlobalFeatureManager.Instance.IsEnabled())
+ {
+ if (Model.TagsFeature?.IsEnabled == true)
{
- if (Model.TagsFeature?.IsEnabled == true)
+ @await Component.InvokeAsync(typeof(TagViewComponent), new
{
- @await Component.InvokeAsync(typeof(TagViewComponent), new
- {
- entityType = Volo.CmsKit.Blogs.BlogPostConsts.EntityType,
- entityId = Model.BlogPost.Id.ToString(),
- urlFormat = $"/blogs/{Model.BlogSlug}?tagId={{TagId}}"
- })
- }
+ entityType = Volo.CmsKit.Blogs.BlogPostConsts.EntityType,
+ entityId = Model.BlogPost.Id.ToString(),
+ urlFormat = $"/blogs/{Model.BlogSlug}?tagId={{TagId}}"
+ })
}
+ }