Make it possible to override branding

This commit is contained in:
Pavol Rusnak
2022-07-11 12:43:58 +02:00
parent 85440ebb70
commit 3fa782c2d4
5 changed files with 73 additions and 33 deletions

View File

@@ -40,6 +40,7 @@ type HomepageContent struct {
BlockHeight int
Uris []string
Channels []Channel
Branding service.BrandingConfig
}
type Channel struct {
@@ -111,6 +112,7 @@ func (controller *HomeController) Home(c echo.Context) error {
BlockHeight: int(info.BlockHeight),
Channels: channelSlice,
Uris: info.Uris,
Branding: controller.svc.Config.Branding,
}
var buf bytes.Buffer
err = tmpl.Execute(&buf, content)