diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 19:08:41 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-02 19:08:41 +0200 |
| commit | 0ec5a0769f3c2dc851948a1011fa9062ff5c657b (patch) | |
| tree | db8cf8a41afd71681275af8bc2a999dafc397930 /backend/config.go | |
| parent | f6c7a85ca04b9285677227d66205856c31a7d364 (diff) | |
feat(backend): customize header image and favicon
Diffstat (limited to 'backend/config.go')
| -rw-r--r-- | backend/config.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backend/config.go b/backend/config.go index 5e6620b..d6eec64 100644 --- a/backend/config.go +++ b/backend/config.go @@ -13,11 +13,17 @@ type Link struct { URL string `toml:"url"` } +type Logo struct { + Header string `toml:"header"` + Favicon string `toml:"favicon"` +} + type Config struct { Domain string `toml:"domain"` Name string `toml:"name"` Description string `toml:"description"` Links []Link `toml:"links"` + Logo Logo `toml:"logo"` } func (c *Config) DefaultValues() { @@ -34,6 +40,10 @@ func (c *Config) DefaultValues() { URL: "/log/", }, } + c.Logo = Logo{ + Header: "logo.jpg", + Favicon: "favicon.jpg", + } } func LoadConfig(path string) (*Config, bool) { |
