Browse Source

Render static content in a razor page

pull/6821/head
enisn 6 years ago
parent
commit
5ff01929ee
  1. 10
      modules/cms-kit/host/Volo.CmsKit.Web.Unified/Pages/Index.cshtml

10
modules/cms-kit/host/Volo.CmsKit.Web.Unified/Pages/Index.cshtml

@ -7,6 +7,7 @@
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Commenting
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Rating
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.ReactionSelection
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Contents
@model IndexModel
@inject IStringLocalizer<AbpUiResource> Localizer
<h1 class="text-center">CMS Kit DEMO</h1>
@ -14,10 +15,9 @@
<abp-card>
<abp-card-body class="p-5">
<abp-blockquote class="text-center">
<p class="h2 mb-4">
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
</p>
<p class="m-0">- Martin Fowler</p>
@await Component.InvokeAsync(typeof(ContentViewComponent), new { entityType = "quote", entityId = "1" })
</abp-blockquote>
</abp-card-body>
</abp-card>
@ -71,4 +71,4 @@
@await Component.InvokeAsync(typeof(CommentingViewComponent), new { entityType = "quote", entityId = "2" })
}
</abp-column>
</abp-row>
</abp-row>

Loading…
Cancel
Save