diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/content/dependencies/listTracksWithMusicVideos.js | 7 | ||||
| -rw-r--r-- | src/listing-spec.js | 9 | ||||
| -rw-r--r-- | src/strings-default.yaml | 12 |
3 files changed, 27 insertions, 1 deletions
diff --git a/src/content/dependencies/listTracksWithMusicVideos.js b/src/content/dependencies/listTracksWithMusicVideos.js new file mode 100644 index 00000000..b61832e5 --- /dev/null +++ b/src/content/dependencies/listTracksWithMusicVideos.js @@ -0,0 +1,7 @@ +export default { + relations: (relation, spec) => + ({page: relation('listTracksWithExtra', spec, 'musicVideos', 'array')}), + + generate: (relations) => + relations.page, +}; diff --git a/src/listing-spec.js b/src/listing-spec.js index a301845b..019b34ab 100644 --- a/src/listing-spec.js +++ b/src/listing-spec.js @@ -178,7 +178,14 @@ listingSpec.push({ directory: 'tracks/with-lyrics', stringsKey: 'listTracks.withLyrics', contentFunction: 'listTracksWithLyrics', - seeAlso: ['tracks/needing-lyrics'], + seeAlso: ['tracks/needing-lyrics', 'tracks/with-music-videos'], +}); + +listingSpec.push({ + directory: 'tracks/with-music-videos', + stringsKey: 'listTracks.withMusicVideos', + contentFunction: 'listTracksWithMusicVideos', + seeAlso: ['tracks/with-lyrics'], }); listingSpec.push({ diff --git a/src/strings-default.yaml b/src/strings-default.yaml index dc6bffdd..6cdb9727 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -2305,6 +2305,18 @@ listingPage: title.withDate: "{ALBUM} ({DATE})" item: "{TRACK}" + # listTracks.withMusicVideos: + # The same as withLyrics, but for music videos. + + withMusicVideos: + title: "Tracks - with Music Videos" + title.short: "...with Music Videos" + + chunk: + title: "{ALBUM}" + title.withDate: "{ALBUM} ({DATE})" + item: "{TRACK}" + # listTracks.withSheetMusicFiles: # List tracks, chunked by album (which are sorted by date, # falling back alphabetically) and in their usual track order, |