message: only check engine exists for layouts
diff: @@ -511,6 +511,9 @@ export default class Site {
  while (layout) {
  const engine = this.#getEngine(layout);
  + if (!engine) {
  + throw new Error(`Couldn't find template engine for "${layout}"`);
  + }
  const layoutPath = this.src(engine.includes, layout);
  const layoutData = await engine.load(layoutPath);
  pageData = {
  @@ -586,8 +589,6 @@ export default class Site {
  if (result) {
  return result[1];
  }
  -
  - throw new Error(`Couldn't find template engine for "${path}"`);
  }
  }
  