Fix sub-folder baseURL handling for Page resources
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 5 Jan 2018 10:07:50 +0000 (11:07 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 6 Jan 2018 09:29:13 +0000 (10:29 +0100)
commitf25d8a9e17fb65fa41dafdcbf0358853d68eaf45
treefd8932fdf88b3774b5773866c5f8ceadea2cc15a
parent54a89cde69c1fcda7afe0ba0f4e0de86f5f69aa5
Fix sub-folder baseURL handling for Page resources

I.e. images etc.

Fixes #4228
helpers/pathspec.go
helpers/url.go
hugolib/hugo_sites_build_test.go
hugolib/page.go
hugolib/page_paths.go
resource/image.go
resource/resource.go
resource/resource_test.go
resource/testhelpers_test.go