feat: album releases grid
This commit is contained in:
parent
6d5e493dbe
commit
3917434062
6 changed files with 30 additions and 35 deletions
|
@ -31,9 +31,11 @@ export default async function () {
|
|||
title: album['name'],
|
||||
date: DateTime.fromISO(album['release_date']).toLocaleString(DateTime.DATE_FULL),
|
||||
url: album['release_link'],
|
||||
image: album['image'],
|
||||
artist_url: `/music/artists/${sanitizeMediaString(album['artists']['name_string'])}-${sanitizeMediaString(parseCountryField(album['artists']['country']))}`,
|
||||
mbid: album['artists']['mbid'],
|
||||
timestamp: DateTime.fromISO(album['release_date']).toSeconds()
|
||||
timestamp: DateTime.fromISO(album['release_date']).toSeconds(),
|
||||
type: 'album-release'
|
||||
}
|
||||
}).sort((a, b) => a.timestamp - b.timestamp)
|
||||
}
|
||||
|
|
Reference in a new issue