diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-10-18 08:55:15 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-02 22:12:50 -0300 |
commit | 218adc112f343c8562ba081f0def7b3788b36781 (patch) | |
tree | 8838bf3be997dad62b8ac62abca04a29dcc5a367 /src/content/dependencies/generateGroupInfoPageAlbumsListBySeries.js | |
parent | 8e5c0d5f858716ce6029e47afdde9ded79ed8e32 (diff) |
content, css: gGIPAlbumsListItem: mode-selected album artists
Diffstat (limited to 'src/content/dependencies/generateGroupInfoPageAlbumsListBySeries.js')
-rw-r--r-- | src/content/dependencies/generateGroupInfoPageAlbumsListBySeries.js | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/content/dependencies/generateGroupInfoPageAlbumsListBySeries.js b/src/content/dependencies/generateGroupInfoPageAlbumsListBySeries.js index 2e439897..463522ea 100644 --- a/src/content/dependencies/generateGroupInfoPageAlbumsListBySeries.js +++ b/src/content/dependencies/generateGroupInfoPageAlbumsListBySeries.js @@ -26,6 +26,10 @@ export default { seriesNames: group.serieses .map(series => series.name), + + seriesShowAlbumArtists: + group.serieses + .map(series => series.showAlbumArtists), }), generate: (data, relations, {html, language}) => @@ -38,9 +42,15 @@ export default { stitchArrays({ name: data.seriesNames, + showAlbumArtists: data.seriesShowAlbumArtists, heading: relations.seriesHeadings, items: relations.seriesItems, - }).map(({heading, name, items}) => + }).map(({ + name, + showAlbumArtists, + heading, + items, + }) => html.tags([ heading.slots({ tag: 'dt', @@ -52,6 +62,10 @@ export default { html.tag('dd', html.tag('ul', - items)), + items.map(item => + item.slots({ + accentMode: + (showAlbumArtists ? 'artists' : null), + })))), ])))), }; |