From ad5e81d4da741a206197b8ae0298819e7b5ee2a5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 2 Nov 2025 08:38:42 -0400 Subject: content: gGIPAlbumsListBySeries: actually show series descriptions --- .../generateGroupInfoPageAlbumsListBySeries.js | 15 +++++++++++++-- src/static/css/site.css | 12 +++++++++--- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/content/dependencies/generateGroupInfoPageAlbumsListBySeries.js b/src/content/dependencies/generateGroupInfoPageAlbumsListBySeries.js index f8314d71..6bbee03a 100644 --- a/src/content/dependencies/generateGroupInfoPageAlbumsListBySeries.js +++ b/src/content/dependencies/generateGroupInfoPageAlbumsListBySeries.js @@ -12,6 +12,10 @@ export default { group.serieses .map(() => relation('generateContentHeading')), + seriesDescriptions: + group.serieses + .map(series => relation('transformContent', series.description)), + seriesItems: group.serieses .map(series => series.albums @@ -50,11 +54,13 @@ export default { name: data.seriesNames, itemsShowArtists: data.seriesItemsShowArtists, heading: relations.seriesHeadings, + description: relations.seriesDescriptions, items: relations.seriesItems, }).map(({ name, itemsShowArtists, heading, + description, items, }) => html.tags([ @@ -66,7 +72,11 @@ export default { }), }), - html.tag('dd', + html.tag('dd', [ + html.tag('blockquote', + {[html.onlyIfContent]: true}, + description), + html.tag('ul', stitchArrays({ item: items, @@ -75,6 +85,7 @@ export default { item.slots({ accentMode: (showArtists ? 'artists' : null), - })))), + }))), + ]), ])))), }; diff --git a/src/static/css/site.css b/src/static/css/site.css index a78a31fb..ef3ffe8e 100644 --- a/src/static/css/site.css +++ b/src/static/css/site.css @@ -2353,17 +2353,23 @@ li .origin-details { text-indent: 0; } -.album-group-list blockquote { +blockquote:is( + .album-group-list *, .group-series-list * +) { max-width: 540px; margin-bottom: 9px; margin-top: 3px; } -.album-group-list blockquote p:first-child { +blockquote p:first-child:is( + .album-group-list *, .group-series-list * +) { margin-top: 0; } -.album-group-list blockquote p:last-child { +blockquote p:last-child:is( + .album-group-list *, .group-series-list * +) { margin-bottom: 0; } -- cgit 1.3.0-6-gf8a5