Allow some branding customization.

This commit is contained in:
David Leonard
2024-05-17 14:37:05 -07:00
parent 21d491843f
commit 3cfbe0c89b
4 changed files with 49 additions and 9 deletions

View File

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