{"id":32440524,"url":"https://github.com/marthijn/sidio.sitemap.blazor","last_synced_at":"2025-10-26T01:48:03.900Z","repository":{"id":240520147,"uuid":"802854389","full_name":"marthijn/Sidio.Sitemap.Blazor","owner":"marthijn","description":"Sidio.Sitemap.Blazor is a lightweight .NET library for generating sitemaps in Blazor applications.","archived":false,"fork":false,"pushed_at":"2025-10-20T13:05:41.000Z","size":228,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-20T15:09:07.181Z","etag":null,"topics":["blazor","sitemap","sitemap-generator"],"latest_commit_sha":null,"homepage":"","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/marthijn.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-19T13:00:06.000Z","updated_at":"2025-10-20T13:05:39.000Z","dependencies_parsed_at":"2024-05-19T14:29:11.714Z","dependency_job_id":"fc8dca6e-dcea-4d75-9f87-e790fac54459","html_url":"https://github.com/marthijn/Sidio.Sitemap.Blazor","commit_stats":null,"previous_names":["marthijn/sidio.sitemap.blazor"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/marthijn/Sidio.Sitemap.Blazor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marthijn%2FSidio.Sitemap.Blazor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marthijn%2FSidio.Sitemap.Blazor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marthijn%2FSidio.Sitemap.Blazor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marthijn%2FSidio.Sitemap.Blazor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marthijn","download_url":"https://codeload.github.com/marthijn/Sidio.Sitemap.Blazor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marthijn%2FSidio.Sitemap.Blazor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281047795,"owners_count":26435124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blazor","sitemap","sitemap-generator"],"created_at":"2025-10-26T01:48:03.235Z","updated_at":"2025-10-26T01:48:03.894Z","avatar_url":"https://github.com/marthijn.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sidio.Sitemap.Blazor\nSidio.Sitemap.Blazor is a lightweight .NET library for generating sitemaps in Blazor server applications.\n\n[![NuGet Version](https://img.shields.io/nuget/v/Sidio.Sitemap.Blazor)](https://www.nuget.org/packages/Sidio.Sitemap.Blazor/)\n\n# Versions\n\n|            | [Sidio.Sitemap.Core](https://github.com/marthijn/Sidio.Sitemap.Core)| [Sidio.Sitemap.AspNetCore](https://github.com/marthijn/Sidio.Sitemap.AspNetCore)                                                                                                                                                               | [Sidio.Sitemap.Blazor](https://github.com/marthijn/Sidio.Sitemap.Blazor)                                                                                                                                                           |\n|------------|---------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| *NuGet*    | [![NuGet Version](https://img.shields.io/nuget/v/Sidio.Sitemap.Core)](https://www.nuget.org/packages/Sidio.Sitemap.Core/) | [![NuGet Version](https://img.shields.io/nuget/v/Sidio.Sitemap.AspNetCore)](https://www.nuget.org/packages/Sidio.Sitemap.AspNetCore/)                                                      | [![NuGet Version](https://img.shields.io/nuget/v/Sidio.Sitemap.Blazor)](https://www.nuget.org/packages/Sidio.Sitemap.Blazor/)                                                      |\n| *Build*    | [![build](https://github.com/marthijn/Sidio.Sitemap.Core/actions/workflows/build.yml/badge.svg)](https://github.com/marthijn/Sidio.Sitemap.Core/actions/workflows/build.yml)| [![build](https://github.com/marthijn/Sidio.Sitemap.AspNetCore/actions/workflows/build.yml/badge.svg)](https://github.com/marthijn/Sidio.Sitemap.AspNetCore/actions/workflows/build.yml)   | [![build](https://github.com/marthijn/Sidio.Sitemap.Blazor/actions/workflows/build.yml/badge.svg)](https://github.com/marthijn/Sidio.Sitemap.Blazor/actions/workflows/build.yml)   |\n| *Coverage* | [![Coverage Status](https://coveralls.io/repos/github/marthijn/Sidio.Sitemap.Core/badge.svg?branch=main)](https://coveralls.io/github/marthijn/Sidio.Sitemap.Core?branch=main)| [![Coverage Status](https://coveralls.io/repos/github/marthijn/Sidio.Sitemap.AspNetCore/badge.svg?branch=main)](https://coveralls.io/github/marthijn/Sidio.Sitemap.AspNetCore?branch=main) | [![Coverage Status](https://coveralls.io/repos/github/marthijn/Sidio.Sitemap.Blazor/badge.svg?branch=main)](https://coveralls.io/github/marthijn/Sidio.Sitemap.Blazor?branch=main) |\n| *Requirements*|.NET Standard, .NET 8+, | .NET 8+, AspNetCore|.NET 8+, AspNetCore, Blazor server|\n\n# Installation\n\nAdd [the package](https://www.nuget.org/packages/Sidio.Sitemap.Blazor/) to your project.\n\n# Usage\n## Sitemap\n\nRegister services:\n```csharp\nbuilder.Services\n    .AddHttpContextAccessor()\n    .AddDefaultSitemapServices\u003cHttpContextBaseUrlProvider\u003e();\n```\n\nRegister the middleware. Make sure to choose the correct namespace.\n```csharp\nusing Sidio.Sitemap.Blazor;\n\napp.UseSitemap();\n```\n\nAdd the following attribute to your components (pages) to include them in the sitemap:\n```cshtml\n@* default *@\n@attribute [Sitemap]\n\n@* override route url *@\n@attribute [Sitemap(\"/custom-url\")]\n\n@* add change frequency, priority and last modified date *@\n@attribute [Sitemap(ChangeFrequency.Daily, 0.5, \"2024-01-01\")]\n```\n\nThe sitemap is accessible at `[domain]/sitemap.xml`.\n\n# FAQ\n\n* Exception: `Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor' while attempting to activate 'Sidio.Sitemap.AspNetCore.HttpContextBaseUrlProvider'.`\n    * Solution: call `services.AddHttpContextAccessor();` to register the `IHttpContextAccessor`.\n\n# See also\n* [Sidio.Sitemap.Core package](https://github.com/marthijn/Sidio.Sitemap.Core)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarthijn%2Fsidio.sitemap.blazor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarthijn%2Fsidio.sitemap.blazor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarthijn%2Fsidio.sitemap.blazor/lists"}