mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-19 09:57:08 +01:00
replace - _ with whitespace for default homepage.name
This commit is contained in:
@@ -59,7 +59,12 @@ func (cfg *Config) HomepageConfig() H.HomePageConfig {
|
||||
}
|
||||
|
||||
if item.Name == "" {
|
||||
item.Name = U.Title(alias)
|
||||
item.Name = U.Title(
|
||||
strings.ReplaceAll(
|
||||
strings.ReplaceAll(alias, "-", " "),
|
||||
"_", " ",
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
if p.GetType() == PR.ProviderTypeDocker {
|
||||
|
||||
@@ -10,11 +10,11 @@ type (
|
||||
Icon string `yaml:"icon" json:"icon"`
|
||||
URL string `yaml:"url" json:"url"` // URL or unicodes
|
||||
Category string `yaml:"category" json:"category"`
|
||||
SourceType string `yaml:"source_type" json:"source_type"`
|
||||
Description string `yaml:"description" json:"description"`
|
||||
WidgetConfig map[string]any `yaml:",flow" json:"widget_config"`
|
||||
|
||||
Initialized bool `yaml:"-" json:"-"`
|
||||
SourceType string `yaml:"-" json:"source_type"`
|
||||
Initialized bool `yaml:"-" json:"-"`
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user