mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-23 17:41:05 +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 {
|
||||
|
||||
Reference in New Issue
Block a user