#77: Make page logo customizable

This commit is contained in:
TwinProduction
2021-09-11 04:33:14 -04:00
parent 7a68920889
commit db5fc8bc11
9 changed files with 32 additions and 5 deletions

View File

@ -5,17 +5,22 @@ import (
"html/template"
)
const defaultTitle = "Health Dashboard | Gatus"
const (
defaultTitle = "Health Dashboard | Gatus"
defaultLogo = ""
)
// UIConfig is the configuration for the UI of Gatus
type UIConfig struct {
Title string `yaml:"title"` // Title of the page
Logo string `yaml:"logo"` // Logo to display on the page
}
// GetDefaultUIConfig returns a UIConfig struct with the default values
func GetDefaultUIConfig() *UIConfig {
return &UIConfig{
Title: defaultTitle,
Logo: defaultLogo,
}
}