Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@model ChildrenBlockModel
@foreach (var child in Model?.Children ?? Enumerable.Empty<ItemLinkField<ContentBlockModel>>())
{
@await Html.PartialAsync("/Views/Shared/Components/SitecoreComponent/ContentBlock.cshtml", child.Fields)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment