An open API service indexing awesome lists of open source software.

https://github.com/ctolkien/sodapop.breadcrumbtaghelper


https://github.com/ctolkien/sodapop.breadcrumbtaghelper

Last synced: 4 months ago
JSON representation

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





  1. Home






  2. About Us




```

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)