From bb179e51fb55c3390e554a493fad63b8be3bb6db Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 11 Sep 2023 19:36:00 -0700 Subject: [PATCH] chore: crop updates --- src/_data/albums.js | 2 +- src/_includes/partials/now/media-grid.liquid | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_data/albums.js b/src/_data/albums.js index dd4ac231..2f93c1c6 100644 --- a/src/_data/albums.js +++ b/src/_data/albums.js @@ -22,7 +22,7 @@ module.exports = async function () { ) : `https://cdn.coryd.dev/albums/${album['name'].name .replace(/\s+/g, '-') - .toLowerCase()}.jpg?width=450&crop=400,400&crop_gravity=center&quality=100&sharpen=true`, + .toLowerCase()}.jpg?width=450&crop=450,450&crop_gravity=center&quality=100&sharpen=true`, url: album['mbid'] ? `https://musicbrainz.org/album/${album['mbid']}` : `https://musicbrainz.org/search?query=${encodeURI(album['name'])}&type=release_group`, diff --git a/src/_includes/partials/now/media-grid.liquid b/src/_includes/partials/now/media-grid.liquid index 5d12c321..552db961 100644 --- a/src/_includes/partials/now/media-grid.liquid +++ b/src/_includes/partials/now/media-grid.liquid @@ -20,7 +20,7 @@ {% endif %} - {%- capture size %}{% if shape == 'square' %}225px{% else %}180px{% endif %}{% endcapture -%} + {%- capture size %}{% if shape == 'square' %}300px{% else %}250px{% endif %}{% endcapture -%} {% image item.image, alt, 'rounded-lg w-full h-full', size, loading %}