Layout specification and discovery should follow the same behavior as partials

Fixes #1047
suggest passing `Path.GetFileName(pageName)` as first parameter