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

How to add additional html class for render_breadcrumbs? #65

@agusmakmun

Description

@agusmakmun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions