From a080fff517a78cf272030e0d3bffd777391518c2 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 13 Aug 2023 23:49:25 -0300 Subject: content: generateListRandomPageLinksGroupSection: exclude one-track albums --- src/content/dependencies/generateListRandomPageLinksGroupSection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/dependencies/generateListRandomPageLinksGroupSection.js b/src/content/dependencies/generateListRandomPageLinksGroupSection.js index 006ebdf..e2b57fe 100644 --- a/src/content/dependencies/generateListRandomPageLinksGroupSection.js +++ b/src/content/dependencies/generateListRandomPageLinksGroupSection.js @@ -10,7 +10,8 @@ export default { query: (sprawl, group) => ({ albums: sortChronologically(sprawl.albumData.slice()) - .filter(album => album.groups.includes(group)), + .filter(album => album.groups.includes(group)) + .filter(album => album.tracks.length > 1), }), relations: (relation, query, sprawl, group) => ({ -- cgit 1.3.0-6-gf8a5