@akashacms/plugins-breadcrumbs
v0.9.1
Published
A plugin for AkashaCMS that generates breadcrumb trails
Maintainers
Readme
This is a plugin for AkashaCMS which generates breadcrumb trails. These are the trail of links commonly put at the top of the content letting the user navigate to parent pages.
To use it first install the module:
$ npm install @akashacms/plugins-breadcrumbsThe package akashacms-breadcrumbs is old and deprecated, and is replaced by this package.
Then add this to the config.mjs for your site:
import { BreadcrumbsPlugin } from '@akashacms/plugins-breadcrumbs';
// ...
config.
.use(BreadcrumbsPlugin)
// ...It automatically adds itself to the website configuration by
- Adding a directory to the
partialsarray. - Adding a Mahafunc handling the tag
<breadcrumb-trail>
Then in a template you can use it like so:
<div class="row">
<breadcrumb-trail/>
</div>The module provides a partial named breadcrumbs.html.njk.
