chore: crop updates
This commit is contained in:
parent
a76b5e0f75
commit
bb179e51fb
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ module.exports = async function () {
|
||||||
)
|
)
|
||||||
: `https://cdn.coryd.dev/albums/${album['name'].name
|
: `https://cdn.coryd.dev/albums/${album['name'].name
|
||||||
.replace(/\s+/g, '-')
|
.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']
|
url: album['mbid']
|
||||||
? `https://musicbrainz.org/album/${album['mbid']}`
|
? `https://musicbrainz.org/album/${album['mbid']}`
|
||||||
: `https://musicbrainz.org/search?query=${encodeURI(album['name'])}&type=release_group`,
|
: `https://musicbrainz.org/search?query=${encodeURI(album['name'])}&type=release_group`,
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{%- 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 %}
|
{% image item.image, alt, 'rounded-lg w-full h-full', size, loading %}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
Reference in a new issue