Skip to content

Add custom classes and extra divs inside the njk macro code #21

Open
@kaynechu

Description

@kaynechu

I was just wondering if there was a way to add custom li classes or extra divs for the child nav list?

So particularly for

<ul>
{%- for entry in navPages %}{{ renderNavListItem(entry) }}{%- endfor -%}
</ul>

Is there a way to extend this, so still generating the child nav links while being able to customise the code with extra html?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions