From c5653ec9b7ef49de0be5d277795766e8bcee078f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 3 Jan 2025 07:46:44 -0400 Subject: content: generateReferencingArtworksPage: parameter name fix --- .../dependencies/generateReferencingArtworksPage.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/content/dependencies/generateReferencingArtworksPage.js b/src/content/dependencies/generateReferencingArtworksPage.js index 78dae5b0..2fe2e93d 100644 --- a/src/content/dependencies/generateReferencingArtworksPage.js +++ b/src/content/dependencies/generateReferencingArtworksPage.js @@ -11,7 +11,7 @@ export default { extraDependencies: ['html', 'language'], - relations: (relation, referencedArtworks) => ({ + relations: (relation, referencingArtworks) => ({ layout: relation('generatePageLayout'), @@ -19,37 +19,37 @@ export default { relation('generateCoverGrid'), links: - referencedArtworks.map(({thing}) => + referencingArtworks.map(({thing}) => (thing.album ? relation('linkTrack', thing) : relation('linkAlbum', thing))), images: - referencedArtworks.map(({thing}) => + referencingArtworks.map(({thing}) => relation('image', thing.artTags)), }), - data: (referencedArtworks) => ({ + data: (referencingArtworks) => ({ count: - referencedArtworks.length, + referencingArtworks.length, names: - referencedArtworks + referencingArtworks .map(({thing}) => thing.name), paths: - referencedArtworks + referencingArtworks .map(({thing}) => (thing.album ? ['media.trackCover', thing.album.directory, thing.directory, thing.coverArtFileExtension] : ['media.albumCover', thing.directory, thing.coverArtFileExtension])), dimensions: - referencedArtworks + referencingArtworks .map(({thing}) => thing.coverArtDimensions), coverArtistNames: - referencedArtworks + referencingArtworks .map(({thing}) => thing.coverArtistContribs .map(contrib => contrib.artist.name)), -- cgit 1.3.0-6-gf8a5