diff --git a/src/_data/json/artist-aliases.json b/src/_data/json/artist-aliases.json new file mode 100644 index 00000000..dfc38623 --- /dev/null +++ b/src/_data/json/artist-aliases.json @@ -0,0 +1,12 @@ +{ + "aliases": [ + { + "artist": "Osees", + "aliases": ["OCS", "The Ohsees", "Thee Oh Sees", "Thee Oh See's"] + }, + { + "artist": "Tom Waits", + "aliases": ["Tom Waits & Crystal Gayle"] + } + ] +} diff --git a/src/_data/music.js b/src/_data/music.js index 06c0854f..30aea2e7 100644 --- a/src/_data/music.js +++ b/src/_data/music.js @@ -1,19 +1,9 @@ const { AssetCache } = require('@11ty/eleventy-fetch') - -const artistAliases = [ - { - artist: 'Osees', - aliases: ['OCS', 'The Ohsees', 'Thee Oh Sees', "Thee Oh See's"], - }, - { - artist: 'Tom Waits', - aliases: ['Tom Waits & Crystal Gayle'], - }, -] +const artistAliases = require('./json/artist-aliases.json') const aliasArtists = (array) => { array.forEach((a) => { - const aliased = artistAliases.find((alias) => alias.aliases.includes(a.artist)) + const aliased = artistAliases.aliases.find((alias) => alias.aliases.includes(a.artist)) if (aliased) a.artist = aliased.artist }) return array diff --git a/src/_includes/now.liquid b/src/_includes/now.liquid index f5bdec3c..372f266a 100644 --- a/src/_includes/now.liquid +++ b/src/_includes/now.liquid @@ -90,7 +90,7 @@ layout: main {%- capture albumName %}{{ album.name | escape }}{% endcapture -%} - {% image album.art, albumName, 'rounded-lg w-full', '225px' %} + {% image album.art, albumName, 'rounded-lg w-full h-full', '225px' %} {% endfor %}