mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.2 KiB
75 lines
2.2 KiB
@page "/blogs/{blogSlug}/{blogPostSlug}"
|
|
|
|
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Blogs.BlogPost
|
|
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Blogs.BlogPostComment
|
|
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Blogs
|
|
@using Volo.CmsKit.Public.Web.Pages
|
|
@using Volo.Abp.GlobalFeatures
|
|
@using Volo.CmsKit.GlobalFeatures
|
|
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.ReactionSelection
|
|
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Rating
|
|
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Tags
|
|
|
|
@inherits CmsKitPublicPageBase
|
|
|
|
@model BlogPostModel
|
|
|
|
@{
|
|
PageLayout.Content.Title = Model.BlogPost.Title;
|
|
}
|
|
|
|
@await Component.InvokeAsync(typeof(DefaultBlogPostViewComponent), new
|
|
{
|
|
Model.BlogSlug,
|
|
Model.BlogPostSlug
|
|
})
|
|
|
|
@if (GlobalFeatureManager.Instance.IsEnabled<TagsFeature>())
|
|
{
|
|
if (Model.TagsFeature?.IsEnabled == true)
|
|
{
|
|
@await Component.InvokeAsync(typeof(TagViewComponent), new
|
|
{
|
|
entityType = Volo.CmsKit.Blogs.BlogPostConsts.EntityType,
|
|
entityId = Model.BlogPost.Id.ToString()
|
|
})
|
|
}
|
|
}
|
|
|
|
@if (GlobalFeatureManager.Instance.IsEnabled<ReactionsFeature>())
|
|
{
|
|
if (Model.ReactionsFeature?.IsEnabled == true)
|
|
{
|
|
@await Component.InvokeAsync(typeof(ReactionSelectionViewComponent), new
|
|
{
|
|
entityType = Volo.CmsKit.Blogs.BlogPostConsts.EntityType,
|
|
entityId = Model.BlogPost.Id.ToString()
|
|
})
|
|
}
|
|
}
|
|
|
|
@if (GlobalFeatureManager.Instance.IsEnabled<RatingsFeature>())
|
|
{
|
|
if (Model.RatingsFeature?.IsEnabled == true)
|
|
{
|
|
@await Component.InvokeAsync(typeof(RatingViewComponent), new
|
|
{
|
|
entityType = Volo.CmsKit.Blogs.BlogPostConsts.EntityType,
|
|
entityId = Model.BlogPost.Id.ToString()
|
|
})
|
|
}
|
|
}
|
|
|
|
<hr />
|
|
|
|
@if (GlobalFeatureManager.Instance.IsEnabled<CommentsFeature>())
|
|
{
|
|
if (Model.CommentsFeature?.IsEnabled == true)
|
|
{
|
|
@await Component.InvokeAsync(typeof(DefaultBlogPostCommentViewComponent), new
|
|
{
|
|
entityType = Volo.CmsKit.Blogs.BlogPostConsts.EntityType,
|
|
entityId = Model.BlogPost.Id.ToString()
|
|
})
|
|
}
|
|
}
|