hugolib: Simplify bundle lookup via .Site.GetPage, ref, relref
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 24 Jan 2018 08:47:30 +0000 (09:47 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 24 Jan 2018 09:05:20 +0000 (10:05 +0100)
commit517b6b62389d23bfe41fe3ae551a691b11bdcaa7
treef516d090bd8a72be8d291decc6c90c7c202429c8
parenta19563910eec5fed08f3b02563b9a7b38026183d
hugolib: Simplify bundle lookup via .Site.GetPage, ref, relref

Given a bundle in `blog/my-bundle/index.en.md` all of these will now worK:

* `blog/my-bundle/index.en.md`
* `blog/my-bundle/index`
* `blog/my-bundle`
* `my-bundle`

The last one is potentially ambigous.

Fixes #4312
hugolib/page_bundler_capture_test.go
hugolib/page_bundler_test.go
hugolib/page_collections.go