From ec129ac9ce0b143ca4c325108ea66c2d0e7352ff Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 17 Nov 2024 18:16:18 -0400 Subject: content: generate{Album,}ReferencedArtworksPage --- src/page/album.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/page/album.js') diff --git a/src/page/album.js b/src/page/album.js index c7327cc8..76f3d6b0 100644 --- a/src/page/album.js +++ b/src/page/album.js @@ -1,3 +1,5 @@ +import {empty} from '#sugar'; + export const description = `per-album info, artwork gallery & commentary pages`; export function targets({wikiData}) { @@ -38,6 +40,16 @@ export function pathsForTarget(album) { }, }, + !empty(album.referencedArtworks) && { + type: 'page', + path: ['albumReferencedArtworks', album.directory], + + contentFunction: { + name: 'generateAlbumReferencedArtworksPage', + args: [album], + }, + }, + /* { type: 'data', -- cgit 1.3.0-6-gf8a5