kauhat / astro-cooklang-integration

Load Cooklang .cook files in Astro content collections.
https://astro-cooklang.kauh.at/
MIT License
3 stars 1 forks source link

Find and display recipe images #3

Open kauhat opened 1 year ago

kauhat commented 1 year ago

The Cooklang spec designates that image files can be placed alongside recipes. We probably need to search the content directory for similarly named files of multiple types of image.

I don't think we'll be able to use getImageURL() from the cooklang-ts library here as this function just builds a URL and does not do any filesystem checks.