{"id":13595334,"url":"https://github.com/zHaytam/SmartBreadcrumbs","last_synced_at":"2025-04-09T10:33:32.371Z","repository":{"id":43152464,"uuid":"137535310","full_name":"zHaytam/SmartBreadcrumbs","owner":"zHaytam","description":"A utility library for ASP.NET Core (both MVC and Razor Pages) websites to easily add and customize breadcrumbs.","archived":false,"fork":false,"pushed_at":"2023-03-27T19:09:41.000Z","size":746,"stargazers_count":162,"open_issues_count":23,"forks_count":81,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-03T21:14:11.650Z","etag":null,"topics":["asp-net-core","asp-net-core-mvc","bootstrap","breadcrumbs","customize-breadcrumbs","razor-pages","smartbreadcrumbs","utility-library"],"latest_commit_sha":null,"homepage":"https://blog.zhaytam.com/2018/06/24/asp-net-core-using-smartbreadcrumbs/","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/zHaytam.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}},"created_at":"2018-06-15T21:58:24.000Z","updated_at":"2024-12-14T12:53:49.000Z","dependencies_parsed_at":"2024-01-14T15:23:08.106Z","dependency_job_id":"3c5d60ef-4a02-412a-b724-10be59cc858d","html_url":"https://github.com/zHaytam/SmartBreadcrumbs","commit_stats":{"total_commits":70,"total_committers":17,"mean_commits":4.117647058823529,"dds":0.4714285714285714,"last_synced_commit":"ba32d8293481b765cfe206a23e09fb86bd8abc82"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zHaytam%2FSmartBreadcrumbs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zHaytam%2FSmartBreadcrumbs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zHaytam%2FSmartBreadcrumbs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zHaytam%2FSmartBreadcrumbs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zHaytam","download_url":"https://codeload.github.com/zHaytam/SmartBreadcrumbs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248020593,"owners_count":21034459,"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","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":["asp-net-core","asp-net-core-mvc","bootstrap","breadcrumbs","customize-breadcrumbs","razor-pages","smartbreadcrumbs","utility-library"],"created_at":"2024-08-01T16:01:47.950Z","updated_at":"2025-04-09T10:33:27.356Z","avatar_url":"https://github.com/zHaytam.png","language":"C#","funding_links":[],"categories":["C#","C\\#","Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# SmartBreadcrumbs 2.0.0\n\nA utility library for ASP.NET Core (both MVC and Razor Pages) websites to easily add and customize breadcrumbs.\n\n## About the 2.0.0 version\n\nWhen I created SmartBreadcrumbs, it only worked on MVC websites.  \nRazor Pages then came out and became \"more popular\", so I rewrote the whole code base, cleaned the project's structure, wrote unit tests and now, SmartBreadcrumbs works on both MVC and Razor Pages websites, even on the same project.  \n**If you're interested in the README of the old version, it's available here: [OLD_README](https://github.com/zHaytam/SmartBreadcrumbs/blob/master/OLD_README.md).**\n\n## Informations\n\n||Badges|\n|--|--|\n|Build| [![Build Status](https://dev.azure.com/haytamzanid0913/SmartBreadcrumbs/_apis/build/status/zHaytam.SmartBreadcrumbs?branchName=master)](https://dev.azure.com/haytamzanid0913/SmartBreadcrumbs/_build/latest?definitionId=1\u0026branchName=master) ![Azure DevOps tests](https://img.shields.io/azure-devops/tests/haytamzanid0913/SmartBreadcrumbs/1.svg)|\n|NuGet|[![NuGet](https://img.shields.io/nuget/v/SmartBreadcrumbs.svg)](https://www.nuget.org/packages/SmartBreadcrumbs) [![Nuget](https://img.shields.io/nuget/dt/SmartBreadcrumbs.svg)](https://www.nuget.org/packages/SmartBreadcrumbs)|\n|License|[![GitHub](https://img.shields.io/github/license/zHaytam/SmartBreadcrumbs.svg)](https://github.com/zHaytam/SmartBreadcrumbs)|\n\n## Documentation \u0026 Example\n\n - [Wiki](https://github.com/zHaytam/SmartBreadcrumbs/wiki): A list of all the possible things you can do with SmartBreadcrumbs.\n - [RazorPagesAndMvc](https://github.com/zHaytam/SmartBreadcrumbs/tree/master/examples/RazorPagesAndMvc): An example project containing both MVC and Razor Pages pages. Check it out to see how SmartBreadcrumbs works.\n\n## Usage\n\n### Install\n\nInstall the package using NuGet  \n`Install-Package SmartBreadcrumbs`\n\n### Initialize\n\nAfter you have setup your breadcrumbs (using the `Breadcrumb` and `DefaultBreadcrumb` attributes), go ahead and add SmartBreadcrumbs in your services:  \n```cs\nservices.AddBreadcrumbs(GetType().Assembly);\n```\n\n### Use\n\nSmartBreadcrumbs comes with a `breadcrumb` tag that renders the breadcrumbs for you, to use it:\n\n 1. In `_ViewImports.cshtml`, add `@addTagHelper *, SmartBreadcrumbs`.\n 2. In your `_Layout.cshml` (or specific pages), use `\u003cbreadcrumb\u003e\u003c/breadcrumb\u003e`.\n\n### Customize\n\n#### Options\n\nYou can specify options when you initialize SmartBreadcrumbs:  \n```cs\nservices.AddBreadcrumbs(GetType().Assembly, options =\u003e\n{\n\toptions.TagName = \"nav\";\n\toptions.TagClasses = \"\";\n\toptions.OlClasses = \"breadcrumb\";\n\toptions.LiClasses = \"breadcrumb-item\";\n\toptions.ActiveLiClasses = \"breadcrumb-item active\";\n\toptions.SeparatorElement = \"\u003cli class=\\\"separator\\\"\u003e/\u003c/li\u003e\";\n});\n```\n\n#### More\n\nCheck out the documentation if you need more customization!\n - You can manually create and set breadcrumb nodes, useful when you have dynamic breadcrumbs (e.g. E-Commerce website).\n - You can get access to the `BreadcrumbManager` and create your own `TagHelper` for example.\n\n## Credits \u0026 License\n\nCredits: zHaytam and the contributors.  \nLicense: SmartBreadcrumbs is open source, licensed under the [MIT License](https://github.com/zHaytam/SmartBreadcrumbs/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FzHaytam%2FSmartBreadcrumbs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FzHaytam%2FSmartBreadcrumbs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FzHaytam%2FSmartBreadcrumbs/lists"}