diff --git a/src/ssgs/static.js b/src/ssgs/static.js index 2f743d6..9e548e4 100644 --- a/src/ssgs/static.js +++ b/src/ssgs/static.js @@ -15,13 +15,16 @@ export default class Static extends Ssg { /** * Generates collections config from a set of paths. * - * @param _collectionPaths {string[]} + * @param collectionPaths {string[]} * @param options {import('../types').GenerateCollectionsConfigOptions} * @returns {import('../types').CollectionsConfig} */ - generateCollectionsConfig(_collectionPaths, options) { + generateCollectionsConfig(collectionPaths, options) { return { - pages: this.generateCollectionConfig('pages', options?.source ?? ''), + pages: this.generateCollectionConfig('pages', options?.source ?? '', { + ...options, + collectionPaths, + }), }; } }