Uninett/Argus

Document methods for customizing the logo

开放

#1,035 创建于 2024年8月27日

 (0 条评论) (0 个反应) (0 位负责人)Python (20 个派生)auto 404
documentationfrontendgood first issue

仓库指标

星标
 (24 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南