mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-04 01:20:04 +03:00
Make hugo server -t work again
This commit solves an issue where hugo would ignore the cli -t flag and only use a theme defined in config.toml. Also allow -t flag to accept a string slice. Closes #5569 Closes #5061 Related #4868
This commit is contained in:
parent
e3cb8e6c78
commit
db3c49d049
3 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,7 @@ func TestCommandsPersistentFlags(t *testing.T) {
|
|||
assert.Equal("/tmp/mydestination", cfg.GetString("publishDir"))
|
||||
assert.Equal("mycontent", cfg.GetString("contentDir"))
|
||||
assert.Equal("mylayouts", cfg.GetString("layoutDir"))
|
||||
assert.Equal("mytheme", cfg.GetString("theme"))
|
||||
assert.Equal([]string{"mytheme"}, cfg.GetStringSlice("theme"))
|
||||
assert.Equal("mythemes", cfg.GetString("themesDir"))
|
||||
assert.Equal("https://example.com/b/", cfg.GetString("baseURL"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue