diff --git a/handler/routes.go b/handler/routes.go index 2e004e1..819d683 100644 --- a/handler/routes.go +++ b/handler/routes.go @@ -52,7 +52,12 @@ func Favicon(db store.IStore) echo.HandlerFunc { func BrandLogo(db store.IStore) echo.HandlerFunc { return func(c echo.Context) error { - _, err := os.OpenFile(path.Join(db.GetPath(), "branding")+"/logo.png", os.O_RDONLY, 0777) + _, err := os.OpenFile(path.Join(db.GetPath(), "branding")+"/logo.svg", os.O_RDONLY, 0777) + if err == nil { + return c.File(path.Join(db.GetPath(), "branding") + "/logo.svg") + } + + _, err = os.OpenFile(path.Join(db.GetPath(), "branding")+"/logo.png", os.O_RDONLY, 0777) if err == nil { return c.File(path.Join(db.GetPath(), "branding") + "/logo.png") } diff --git a/templates/branding_settings.html b/templates/branding_settings.html index 02443d0..c43d526 100644 --- a/templates/branding_settings.html +++ b/templates/branding_settings.html @@ -26,7 +26,7 @@ Branding Settings -