diff --git a/src/pages/vinyl.astro b/src/pages/vinyl.astro index 7b38759..2706c67 100644 --- a/src/pages/vinyl.astro +++ b/src/pages/vinyl.astro @@ -3,12 +3,11 @@ import SectionContainer from '../components/SectionContainer.astro'; import vinyl from '../data/vinyl.json' const vinylByAlbumTitle = vinyl.reduce((acc:any, currentVinyl) => { - const { album, artist, cover } = currentVinyl; + const { album, artist } = currentVinyl; if (!acc[album]) { acc[album] = { vinyls: [], - artist: artist, - cover: cover + artist: artist }; } acc[album].vinyls.push(currentVinyl); @@ -27,25 +26,19 @@ const vinylData = Object.keys(vinylByAlbumTitle).map(albumTitle => { --- -
-
+
+

📀 Platesamlinga

+ {vinylData.map((album) => ( +
+
  • {album.title} by {album.artist}
  • +
    + ))} +
    + -

    - 📀 Platesamlinga -

    -

    Here's a collection of all the vinyl's that I got!

    -
    -
    - {vinylData.map((album) => ( -
    - -

    {album.title}

    -

    {album.artist}

    -
    - ))} -
    -
    -
    \ No newline at end of file + \ No newline at end of file