grav-plugin-breadcrumbs
grav-plugin-breadcrumbs copied to clipboard
Add option to ignore current page
I think it would be nice if there could be an option to include/exclude the current page on the breadcrumb trail, similar to how you can optionally include home.
(I'll open a PR for this soon)
@Regaez But what if I want to include current in some pages, but in other not. How to manipulate with this option from twig?
It's currently a global plugin option, so you are unable to do this on a page-by-page basis.
You could, however, set ignore_current
to false
, and then override the twig template in your theme so that it filters out the last breadcrumb item depending on some page header value.