From 7cb88275fd3c813114271c0a136b12c72c5a172a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 19 Nov 2024 13:25:22 -0400 Subject: content: decompose generateCoverArtwork No visual/site changes yet. This involves introducing an unfortunate mega-hack in generateStickyHeadingContainer, which sets slots on cover artworks. Very scary. Oooooo Otherwise, all cover artwork code is much more compositional. Pass-through slots (`image`) are removed in generateCoverArtwork and a partially-formed `image` slot is accepted instead. --- src/content/dependencies/generateReferencingArtworksPage.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/content/dependencies/generateReferencingArtworksPage.js') diff --git a/src/content/dependencies/generateReferencingArtworksPage.js b/src/content/dependencies/generateReferencingArtworksPage.js index 468d5f78..78dae5b0 100644 --- a/src/content/dependencies/generateReferencingArtworksPage.js +++ b/src/content/dependencies/generateReferencingArtworksPage.js @@ -77,8 +77,7 @@ export default { styleRules: slots.styleRules, cover: - slots.cover - .slot('mode', 'primary-artists'), + slots.cover.slot('details', 'artists'), mainClasses: ['top-index'], mainContent: [ -- cgit 1.3.0-6-gf8a5