Now, even for nun-bundles it is possible to do lookup without path or extension.
So, given `blog/my-blog-post.en.md` these lookups will succeed:
* `blog/my-blog-post.en.md`
* `blog/my-blog-post`
* `my-blog-post.en.md`
* `my-blog-post`
See #4312
See https://github.com/gohugoio/hugoDocs/issues/307
singlePage := s.getPage(KindPage, "a/1.md")
assert.NotNil(singlePage)
+ assert.Equal(singlePage, s.getPage("page", "a/1"))
+ assert.Equal(singlePage, s.getPage("page", "1"))
+
assert.Contains(singlePage.Content, "TheContent")
if ugly {
_, name := path.Split(dir)
cache[name] = p
cache[dir] = p
+ } else {
+ // Again, ambigous
+ cache[translasionBaseName] = p
}
// We need a way to get to the current language version.