hubolib: Do not add missing trailing slash to command line baseURL
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 7 Apr 2017 16:33:28 +0000 (18:33 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 7 Apr 2017 18:18:31 +0000 (20:18 +0200)
commit7b2e1b0be986545f2f137d79c54cd8beff3ce966
treeddde4c517b071c50162e9758de2a039dc60b38e5
parente975a07fb0db8f1926186ff810b8aa1e6db80206
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
commands/hugo.go
hugolib/site.go
hugolib/site_url_test.go