mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 14:40:43 +03:00
commands: Remove accidental and breaking space in baseURL flag
And added key-trimming to prevent future mishaps. See #4607
This commit is contained in:
parent
27a524b090
commit
1b4e0c4161
2 changed files with 3 additions and 1 deletions
|
@ -101,6 +101,7 @@ func TestCommandsPersistentFlags(t *testing.T) {
|
|||
assert.Equal("mylayouts", cfg.GetString("layoutDir"))
|
||||
assert.Equal("mytheme", cfg.GetString("theme"))
|
||||
assert.Equal("mythemes", cfg.GetString("themesDir"))
|
||||
assert.Equal("https://example.com/b/", cfg.GetString("baseURL"))
|
||||
|
||||
assert.Equal([]string{"page", "home"}, cfg.Get("disableKinds"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue