https://github.com/ctolkien/sodapop.breadcrumbtaghelper
https://github.com/ctolkien/sodapop.breadcrumbtaghelper
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ctolkien/sodapop.breadcrumbtaghelper
- Owner: ctolkien
- License: mit
- Created: 2018-02-24T04:40:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-14T00:22:11.000Z (over 7 years ago)
- Last Synced: 2025-01-20T08:26:05.734Z (over 1 year ago)
- Language: HTML
- Size: 514 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SodaPop.BreadcrumbTagHelper
Generates schema.org compliant breadcrumbs.
## Install
```
dotnet add package SodaPop.BreadcrumbTagHelper --version 1.0.0-beta1
```
Add the following to your `_ViewImports.cshtml` file:
```
@addTagHelper *, SodaPop.BreadcrumbTagHelper
```
## Usage
```html
Home
About Us
```
Also supports `Razor Pages`
```html
Home
About Us
```
## Rendered Output
```html
```
Things to note:
* The `position` property will automatically be set based on it's position in the breadcrumb list
* A class of `active` will automatically be applied to the anchor if you're on a matching mvc route or razor page (would love help in making this more flexible)