Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

How to add additional html class for render_breadcrumbs? #65

Open
agusmakmun opened this issue Jan 4, 2021 · 0 comments
Open

How to add additional html class for render_breadcrumbs? #65

agusmakmun opened this issue Jan 4, 2021 · 0 comments

Comments

@agusmakmun
Copy link

agusmakmun commented Jan 4, 2021

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" %}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant