fix: image

This commit is contained in:
Cory Dransfeldt 2024-05-01 09:51:39 -07:00
parent 9ca4a6bb2f
commit 9f369b5193
No known key found for this signature in database

View file

@ -14,7 +14,7 @@ To simplify file uploads to B2, I mount the bucket for my site using [Mountain D
My music charting feature relies on JSON maps of artist and album metadata — if a new artist or album isn't present in either, it assumes that the image it needs is in the format of `artist-name.jpg` or `artist-name-album-name.jpg`. I store the canonical copies of these image files in a separate GitHub repo and have Hazel watch the `artist` and `album` directories contained therein. It renames the files to match the aforementioned format, strips characters that typically break URLs and copies them to my mounted B2 Bucket.
{% image 'https://coryd.dev/.netlify/images/?url=/media/blog/albums-hazel-rule-example.png&w=1000', 'An example of my album art Hazel workflow', 'image-banner' %}
{% image 'https://coryd.dev/media/blog/albums-hazel-rule-example.png', 'An example of my album art Hazel workflow', 'image-banner' %}
---