« get me outta code hell

always show unreleased tracks album on homepage - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2020-10-30 13:50:21 -0300
committer(quasar) nebula <towerofnix@gmail.com>2020-10-30 13:50:21 -0300
commit9e51f23a4786b523d3af4d6688b4c181f9aa273a (patch)
tree101f986526ff58b618306a85451e54feb49a98ea
parente658559ed7b64e3009f5c851ab45827596b5004d (diff)
always show unreleased tracks album on homepage
-rw-r--r--upd8.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js
index de8b71d8..3589e7db 100644
--- a/upd8.js
+++ b/upd8.js
@@ -1133,7 +1133,8 @@ function writeMiscellaneousPages() {
                             entries: (albumData
                                 .filter(album => album.isFanon)
                                 .reverse()
-                                .slice(0, 7)
+                                .slice(0, 6)
+                                .concat([albumData.find(album => album.directory === C.UNRELEASED_TRACKS_DIRECTORY)])
                                 .map(album => ({item: album}))),
                             lazy: true
                         })}