Move default logo text to the template

This commit is contained in:
Svilen Markov 2024-08-27 00:15:55 +01:00
parent 371eb3bee6
commit ffb1bccb10
2 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,7 @@
<div class="header-container content-bounds">
<div class="header flex padding-inline-widget widget-content-frame">
<!-- TODO: Replace G with actual logo, first need an actual logo -->
<div class="logo">{{ if ne "" .App.Config.Branding.LogoURL }}<img src="{{ .App.Config.Branding.LogoURL }}" alt="">{{ else if ne "" .App.Config.Branding.LogoText }}{{ .App.Config.Branding.LogoText }}{{ else }}{{ end }}</div>
<div class="logo">{{ if ne "" .App.Config.Branding.LogoURL }}<img src="{{ .App.Config.Branding.LogoURL }}" alt="">{{ else if ne "" .App.Config.Branding.LogoText }}{{ .App.Config.Branding.LogoText }}{{ else }}G{{ end }}</div>
<div class="nav flex grow">
{{ template "navigation-links" . }}
</div>

View File

@ -51,7 +51,6 @@ func NewConfig() *Config {
config.Server.Host = ""
config.Server.Port = 8080
config.Branding.LogoText = "G"
return config
}