diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-01-17 05:10:10 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-01-17 05:10:10 -0400 |
| commit | f63f2822a6e75ed25d6a18bba1614ae698384e98 (patch) | |
| tree | e372521a2881541041820a19c60d4fc7fa1ce3d3 /src/content | |
| parent | a0381a363e0ee05d2aa78316b5a910ac749fc101 (diff) | |
content: listTracksWithMusicVideos: hide album dates
Diffstat (limited to 'src/content')
| -rw-r--r-- | src/content/dependencies/listTracksWithExtra.js | 3 | ||||
| -rw-r--r-- | src/content/dependencies/listTracksWithMusicVideos.js | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/content/dependencies/listTracksWithExtra.js b/src/content/dependencies/listTracksWithExtra.js index 09d8ee21..27f03ee9 100644 --- a/src/content/dependencies/listTracksWithExtra.js +++ b/src/content/dependencies/listTracksWithExtra.js @@ -52,6 +52,7 @@ export default { slots: { hash: {type: 'string'}, + showAlbumDates: {type: 'boolean', default: true}, }, generate(data, relations, slots, {language}) { @@ -63,7 +64,7 @@ export default { albumLink: relations.albumLinks, date: data.dates, }).map(({albumLink, date}) => - (date + (slots.showAlbumDates && date ? { stringsKey: 'withDate', album: albumLink, diff --git a/src/content/dependencies/listTracksWithMusicVideos.js b/src/content/dependencies/listTracksWithMusicVideos.js index b61832e5..e7aa1f5e 100644 --- a/src/content/dependencies/listTracksWithMusicVideos.js +++ b/src/content/dependencies/listTracksWithMusicVideos.js @@ -3,5 +3,7 @@ export default { ({page: relation('listTracksWithExtra', spec, 'musicVideos', 'array')}), generate: (relations) => - relations.page, + relations.page.slots({ + showAlbumDates: false, + }), }; |