« get me outta code hell

content: generate{Album,}ReferencedArtworksPage - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/album.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-11-17 18:16:18 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-11-17 18:16:18 -0400
commitec129ac9ce0b143ca4c325108ea66c2d0e7352ff (patch)
tree0dad7fa2757aa91ed698443d8767722071caed4f /src/page/album.js
parent6acbc628cb111c53d0b312ab90cd4807ad4bd8d1 (diff)
content: generate{Album,}ReferencedArtworksPage
Diffstat (limited to 'src/page/album.js')
-rw-r--r--src/page/album.js12
1 files changed, 12 insertions, 0 deletions
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',