Improve .Site.GetPage for regular translated pages
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 17 Jan 2018 18:26:34 +0000 (19:26 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 17 Jan 2018 21:27:25 +0000 (22:27 +0100)
commit9409bc0f799a8057836a14ccdf2833a55902175e
tree13b6564180b6595e9444d9c64f8a386df8a08a17
parent4eb1650bec0be0da57947fc8ee9b3c641d5e35dd
Improve .Site.GetPage for regular translated pages

You can still use the full path with extensions, but to get the current language version:

* If the content file lives in `/content/blog/mypost.en.md`
* Use `.Site.GetPage "page" "blog/mypost"`

Fixes #4285
hugolib/hugo_sites_build_test.go
hugolib/page_collections.go