{"id":21328428,"url":"https://github.com/wiredviews/xperience-html-tag-page-builder-components","last_synced_at":"2026-02-13T21:33:57.263Z","repository":{"id":98317913,"uuid":"502380590","full_name":"wiredviews/xperience-html-tag-page-builder-components","owner":"wiredviews","description":"A collection of ASP.NET Core components for optimizing the rendering and loading of script, style, and image assets on Kentico Xperience 13.0 sites","archived":false,"fork":false,"pushed_at":"2022-06-11T18:05:38.000Z","size":50,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-07T10:31:09.109Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wiredviews.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-11T15:08:55.000Z","updated_at":"2024-03-29T20:11:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"a63ca769-b7c9-4491-82e8-a8290efbb3bf","html_url":"https://github.com/wiredviews/xperience-html-tag-page-builder-components","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wiredviews/xperience-html-tag-page-builder-components","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiredviews%2Fxperience-html-tag-page-builder-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiredviews%2Fxperience-html-tag-page-builder-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiredviews%2Fxperience-html-tag-page-builder-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiredviews%2Fxperience-html-tag-page-builder-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiredviews","download_url":"https://codeload.github.com/wiredviews/xperience-html-tag-page-builder-components/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiredviews%2Fxperience-html-tag-page-builder-components/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29418538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T21:28:58.826Z","updated_at":"2026-02-13T21:33:57.227Z","avatar_url":"https://github.com/wiredviews.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xperience HTML Tag Page Builder Components\n\n[![GitHub Actions CI: Build](https://github.com/wiredviews/xperience-html-tag-page-builder-components/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/wiredviews/xperience-html-tag-page-builder-components/actions/workflows/ci.yml)\n\n[![Publish Packages to NuGet](https://github.com/wiredviews/xperience-html-tag-page-builder-components/actions/workflows/publish.yml/badge.svg?branch=main)](https://github.com/wiredviews/xperience-html-tag-page-builder-components/actions/workflows/publish.yml)\n\n[![NuGet Package](https://img.shields.io/nuget/v/XperienceCommunity.HTMLTagPageBuilderComponents.svg)](https://www.nuget.org/packages/XperienceCommunity.HTMLTagPageBuilderComponents)\n\nA collection of ASP.NET Core components for optimizing the rendering and loading of script, style, and image assets on Kentico Xperience 13.0 sites\n\n## Dependencies\n\nThis package is compatible with ASP.NET Core 6.0+ applications or libraries integrated with Kentico Xperience 13.0.\n\n## How to Integrate?\n\n1. Install the NuGet package in your ASP.NET Core project (or class library)\n\n   ```bash\n   dotnet add package XperienceCommunity.HTMLTagPageBuilderComponents\n   ```\n\n2. Create an implementation of `IHTMLTagsRetriever` which should use `IPageRetriever` to get either global HTML tag page content or a specific HTML tag page's content to display on the site:\n\n   ```csharp\n   public class : MyHTMLTagsRetreiver : IHTMLTagsRetriever\n   {\n\t   private readonly IPageRetriever pageRetriever;\n\n\t   public MyHTMLTagsRetriever(IPageRetriever pageRetriever) =\u003e this.pageRetriever = pageRetriever;\n\n       public async Task\u003cGlobalTags\u003e RetrieveGlobalTags(CancellationToken cancellationToken = default)\n\t   {\n\t\t   var pages = await pageRetriever.RetrieveAsync\u003cGlobalTagsContent\u003e();\n\n\t\t   if (!pages.Any())\n\t\t   {\n\t\t\t   throw new Exception(\"...\");\n\t\t   }\n\n\t\t   return pages.Select(p =\u003e new GlobalTags(...)).Single();\n\t   }\n\n       public async Task\u003cAdvancedHTMLTag\u003e RetrieveAdvancedTag(Guid nodeGUID, CancellationToken cancellationToken = default)\n\t   {\n\t\t   var pages = await pageRetriever.RetrieveAsync\u003cHTMLTagContent\u003e(q =\u003e q.WhereEquals(nameof(TreeNode.NodeGUID), nodeGUID));\n\n\t\t   if (!pages.Any())\n\t\t   {\n\t\t\t   throw new Exception(\"...\");\n\t\t   }\n\n\t\t   return pages.Select(p =\u003e new AdvancedHTMLTag(...)).Single();\n\t   }\n   }\n   ```\n\n3. Call the `IServiceCollection` extension to register all the library's services:\n\n\t```csharp\n\tservices.AddHTMLTagPageBuilderComponents\u003cMyHTMLTagsRetreiver\u003e();\n\t```\n\n4. Add the HTML Tag View Components to the main areas of your Layout:\n\n\t```html\n\t\u003c!DOCTYPE html\u003e\n\t\u003chtml lang=\"en\"\u003e\n\t\u003chead id=\"head\"\u003e\n\t\t\u003cvc:page-html-tag-resource-hints /\u003e\n\n\t\t\u003cvc:page-html-tags render-location=\"HeadStart\" /\u003e\n\n\t\t\u003c!-- ... --\u003e\n\t\n\t\t\u003cvc:page-html-tags render-location=\"HeadEnd\" /\u003e\t\n\t\u003c/head\u003e\n\n\t\u003cbody\u003e\n\t\t\u003cvc:page-html-tags render-location=\"AfterBodyStart\" /\u003e\t\n\n\t\t\u003c!-- ... -\u003e\n\n\t\t@RenderBody()\n\n\t\t\u003c!-- ... -\u003e\n\n\t\t\u003cvc:page-html-tags render-location=\"BeforeBodyEnd\" /\u003e\n\t\u003c/body\u003e\n\t\u003c/html\u003e\n\t```\n\n## Usage Examples\n\n### Above-the-fold Image Preload\n\nIf you have an image added to a page programmatically, or through a Widget, you can use the `IHTMLTagDataStore` to store an Image file path which will have a resource hint added to the `\u003chead\u003e`:\n\n```csharp\nvoid AddImageLinkPreload(IHTMLTagDataStore store, string imagePath)\n{\n\tstring tag = new HTMLTagData(\n\t\tPageRenderLocation.None,\n\t\tHTMLTagType.ImageFile,\n\t\timagePath);\n\n\tstore.StoreTagData(tag);\n}\n```\n\nIn the `\u003chead\u003e` where you add `\u003cvc:page-html-tag-resource-hints /\u003e`, the following will be rendered:\n\n```\n\u003clink rel=\"preload\" as=\"image\" href=\"/path/to/your/image.jpg\" /\u003e\n```\n\nWhen using a Widget, you could provide a Widget Property that toggles whether or not this image has a preload hint.\n\n### Global HTML Tags\n\nWith a single Page in the content tree that stores global HTML tags (ex: Marketing Tags, Analytics scripts) you can\nmap the fields of that content to various locations on the page automatically with the `\u003cvc:page-html-tags /\u003e` View Component.\n\nIf your Page Type has a \"Before Body End\" field, that would be rendered at the bottom of the Layout using the following:\n\n```html\n\u003cvc:page-html-tags render-location=\"BeforeBodyEnd\" /\u003e\n```\n\n### Advanced HTML Tag Widget\n\nTODO\n\n## Contributions\n\nIf you discover a problem, please [open an issue](https://github.com/wiredviews/xperience-html-tag-page-builder-components/issues/new).\n\nIf you would like contribute to the code or documentation, please [open a pull request](https://github.com/wiredviews/xperience-html-tag-page-builder-components/compare).\n\n## References\n\n### .NET\n\n### Kentico Xperience\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiredviews%2Fxperience-html-tag-page-builder-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiredviews%2Fxperience-html-tag-page-builder-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiredviews%2Fxperience-html-tag-page-builder-components/lists"}