Uninett/Argus

Document methods for customizing the logo

Aperta

#1035 aperta il 27 ago 2024

 (0 commenti) (0 reazioni) (0 assegnatari)Python (20 fork)auto 404
documentationfrontendgood first issue

Metriche repository

Star
 (24 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

From Uninett/argus-htmx-frontend#72

Allows for overriding the navbar logo with a custom logo through context variables. A developer may for example create a context processor to change the logo and its associated properties:

def logo(request):
    return {
        "logo": {
            "file": "logo_color.png",
            "alt": "geant-argus",
            "url": "home",
        }
    }

Guida contributor