.Render is broken in v147.0

Please don’t.

Short story: Move single/foo.html up to top level layouts and adjust the name in the lookup.

Longer story:

  • The path below /layouts (that’s not the underscore variants _partials, _shortcodes or _markup) has a consistent and only one meaning (with some special handling for when type is set in front matter): It matches the Page path.
  • So when we look for a template for .Render "foo", we find the best matching layout for the given layout foo and the distance from the layout up to the Page’s path as two of the criteria (closer is better).

You coud argue that this is a breaking change, and you’re right, but:

  1. I have never seen the above case before (I’m pretty sure the docs for Render says “layout name”).
  2. It’s not easiliy fixable without breaking the new model (which I think is much better than the old one)