Skip to content

Using multiple themes #86

Closed
Closed
@GDWR

Description

@GDWR

Currently, I attempting to use this project's multiple themes functionality to create a dark and light mode.

While trying to do this am I facing issues with sending duplicate .js files, as the tag has been used twice.
With this .js being served twice, it is creating two event handlers for the navbar burger menu on the page and is causing it to stop working.

Django template:

{% bulma %}
{% bulma 'dark' %}

Firefox network tab when loading the page:
image

I am unsure how Django extensions work, but having a way to ensure that only one .js file is served would allow me to implement the functionality I want.


This functionality for switching themes could be implemented into this package also, as it would be a nice to have for other users of django-simple-bulma

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