docs: function renderCollection(patterns, drizzleData, collectionKey) {
    const layoutKey = drizzleData.options.layouts.collection;
    let layoutObj;
    try {
      // DeepObj will throw if it fails, which is good and fine...
      layoutObj = deepObj(idKeys(layoutKey), drizzleData.templates, false);
    } catch (e) {
      // But Make this error more friendly and specific
      DrizzleError.error(
        new DrizzleError(
          `Could not find partial for default collection layout
  '${layoutKey}'. Check 'options.layouts.collection' and/or
  'options.src.templates' values to make sure they are OK`,
          DrizzleError.LEVELS.ERROR
        ),
        drizzleData.options.debug
      );
    }
    patterns.collection.contents = applyTemplate(
      layoutObj.contents,
      resourceContext(patterns.collection, drizzleData),
      drizzleData.options
    );
    return patterns;
  }