prymitive / bootstrap-breadcrumbs

Django template tags for easy breadcrumbs using twitter bootstrap css classes or custom template
django-bootstrap-breadcrumbs.readthedocs.org
MIT License
93 stars 48 forks source link

How to add additional html class for render_breadcrumbs? #65

Open agusmakmun opened 3 years ago

agusmakmun commented 3 years ago

by default, the {% render_breadcrumbs %} rendered the html breadcrumb like this below example:

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="/">Home</a></li>
    <li class="breadcrumb-item"><a href="/quizzes/">Quizzes</a></li>
    <li class="breadcrumb-item active" aria-current="page">Quiz Python Programming</li>
  </ol>
</nav>

but, for some case I need to add new the thml class inside that <ol class="breadcrumb">, e.g: <ol class="breadcrumb bg-light">.

Is there any support for it? e.g: {% render_breadcrumbs add_class:"bg-light foobar baz" %}