diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2020-10-29 11:42:31 -0300 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2020-10-29 11:42:31 -0300 |
commit | b3868ab01e65d0c2783a40e0c05d921e63b22002 (patch) | |
tree | a49709e361ec6b3163ca874b0920f6b05b55b971 /upd8.js | |
parent | fabc702caa201013cdb333954c55ad1fd4a92b78 (diff) |
allow unnamed first group + remove header line
this is against html5 standard though, so dont :P
Diffstat (limited to 'upd8.js')
-rw-r--r-- | upd8.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/upd8.js b/upd8.js index 70570c7b..d99b64cf 100644 --- a/upd8.js +++ b/upd8.js @@ -1334,12 +1334,11 @@ async function writeAlbumPage(album) { </p> ${album.urls.length && `<p>Listen on ${joinNoOxford(album.urls.map(url => fancifyURL(url, {album: true})), 'or')}.</p>` || `<!-- (here: Listen on...) -->`} ${album.usesGroups ? fixWS` - <p>This album listing is divided into groups:</p> <dl class="album-group-list"> ${album.tracks.flatMap((track, i, arr) => [ (i > 0 && track.group !== arr[i - 1].group) && `</${listTag}></dd>`, (i === 0 || track.group !== arr[i - 1].group) && fixWS` - <dt>${track.group}:</dt> + ${track.group && `<dt>${track.group}:</dt>`} <dd><${listTag}> `, trackToListItem(track), @@ -2450,7 +2449,7 @@ function generateSidebarForAlbum(album, currentTrack = null) { ${album.tracks.flatMap((track, i, arr) => [ (i > 0 && track.group !== arr[i - 1].group) && `</${listTag}></dd>`, (i === 0 || track.group !== arr[i - 1].group) && fixWS` - <dt style="${getThemeString(track)}" ${classes(currentTrack && track.group === currentTrack.group && 'current')}><a href="${C.TRACK_DIRECTORY}/${track.directory}/index.html">${track.group}</a></dt> + ${track.group && `<dt style="${getThemeString(track)}" ${classes(currentTrack && track.group === currentTrack.group && 'current')}><a href="${C.TRACK_DIRECTORY}/${track.directory}/index.html">${track.group}</a></dt>`} <dd><${listTag}> `, (currentTrack && track.group === currentTrack.group) && trackToListItem(track), |