diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-06-10 07:02:20 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-06-10 07:20:35 -0300 |
| commit | 9c946df709fbeca15bc6e76435cbe30269a2bd3a (patch) | |
| tree | 2e2b465fc089aa56d40dc608d0004a409f1b541e /src/content/dependencies/generateArtistInfoPageChunk.js | |
| parent | 7710949c13b149d40195b4203b8a8234039ef5d6 (diff) | |
client, content, css: simple group contributions table filter
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPageChunk.js')
| -rw-r--r-- | src/content/dependencies/generateArtistInfoPageChunk.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageChunk.js b/src/content/dependencies/generateArtistInfoPageChunk.js index e19030c9..aadafb08 100644 --- a/src/content/dependencies/generateArtistInfoPageChunk.js +++ b/src/content/dependencies/generateArtistInfoPageChunk.js @@ -1,6 +1,13 @@ import {empty} from '#sugar'; export default { + data: (thing) => ({ + groupDirectories: + (thing && thing.groups + ? thing.groups.map(group => group.directory) + : null), + }), + slots: { mode: { validate: v => v.is('flash', 'album'), @@ -26,7 +33,7 @@ export default { durationApproximate: {type: 'boolean'}, }, - generate(slots, {html, language}) { + generate(data, slots, {html, language}) { let earliestItemDate = null; let latestItemDate = null; let onlyItemDate = null; @@ -96,6 +103,10 @@ export default { return html.tags([ html.tag('dt', slots.id && {id: slots.id}, + + data.groupDirectories && + {'data-groups': data.groupDirectories.join(' ')}, + accentedLink), html.tag('dd', slots.list), |