diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-07 18:33:28 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-07 20:18:31 +0200 |
commit | 7b2e1b0be986545f2f137d79c54cd8beff3ce966 (patch) | |
tree | ddde4c517b071c50162e9758de2a039dc60b38e5 /commands/hugo.go | |
parent | e975a07fb0db8f1926186ff810b8aa1e6db80206 (diff) |
hubolib: Do not add missing trailing slash to command line baseURL
This makes it consistent with how it behaves when it's set in config.toml.
This commit also unifies BaseURL in Site.Info so we now have one source for this value.
Fixes #3262
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 6f56ea3db..73dde5d2d 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -317,9 +317,6 @@ func InitializeConfig(subCmdVs ...*cobra.Command) (*deps.DepsCfg, error) { config.Set("logI18nWarnings", logI18nWarnings) if baseURL != "" { - if !strings.HasSuffix(baseURL, "/") { - baseURL = baseURL + "/" - } config.Set("baseURL", baseURL) } |