From 00644623eb6c99a33b3b08771f4f23841f747b88 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 2 Aug 2023 12:45:30 -0300 Subject: content: pass color directly through slots in various places Primarily through generateColorStyle{Rules,Variables}, the former of which is also refactored into generatePageLayout, which now takes a direct color slot itself as well. --- src/content/dependencies/generateAlbumInfoPage.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/content/dependencies/generateAlbumInfoPage.js') diff --git a/src/content/dependencies/generateAlbumInfoPage.js b/src/content/dependencies/generateAlbumInfoPage.js index 8fbb81f9..8ba53530 100644 --- a/src/content/dependencies/generateAlbumInfoPage.js +++ b/src/content/dependencies/generateAlbumInfoPage.js @@ -16,7 +16,6 @@ export default { 'generateAlbumStyleRules', 'generateAlbumTrackList', 'generateChronologyLinks', - 'generateColorStyleRules', 'generateContentHeading', 'generatePageLayout', 'linkAlbum', @@ -39,9 +38,6 @@ export default { relations.albumStyleRules = relation('generateAlbumStyleRules', album); - relations.colorStyleRules = - relation('generateColorStyleRules', album.color); - relations.socialEmbed = relation('generateAlbumSocialEmbed', album); @@ -145,6 +141,7 @@ export default { const data = {}; data.name = album.name; + data.color = album.color; if (!empty(album.additionalFiles)) { data.numAdditionalFiles = album.additionalFiles.length; @@ -163,8 +160,8 @@ export default { title: language.$('albumPage.title', {album: data.name}), headingMode: 'sticky', - colorStyleRules: [relations.colorStyleRules], - additionalStyleRules: [relations.albumStyleRules], + color: data.color, + styleRules: [relations.albumStyleRules], cover: relations.cover -- cgit 1.3.0-6-gf8a5