Update branding config

This commit is contained in:
Svilen Markov
2024-08-10 19:43:50 +01:00
parent 9899f6b761
commit f57bdeec12
5 changed files with 38 additions and 20 deletions

View File

@@ -8,10 +8,10 @@ import (
)
type Config struct {
Server Server `yaml:"server"`
Theme Theme `yaml:"theme"`
Pages []Page `yaml:"pages"`
Branding Branding `yaml:"branding"`
Server Server `yaml:"server"`
Theme Theme `yaml:"theme"`
Branding Branding `yaml:"branding"`
Pages []Page `yaml:"pages"`
}
func NewConfigFromYml(contents io.Reader) (*Config, error) {
@@ -51,9 +51,7 @@ func NewConfig() *Config {
config.Server.Host = ""
config.Server.Port = 8080
config.Branding.Show = true
config.Branding.Name = "Glance"
config.Branding.ShortName = "G"
config.Branding.LogoText = "G"
return config
}