minicomp / wax-facets

The second Wax theme. Good times.
https://minicomp.github.io/wax-facets/
Other
9 stars 8 forks source link

images resizing when appearing via include #54

Open ansleyerickson opened 6 months ago

ansleyerickson commented 6 months ago

Images are appearing in correct proportion in the item's page (ex. https://harlemeducationhistoryproject.github.io/wadleigh/exh/wad001.html) but appear with altered proportions when included on another page (ex. https://harlemeducationhistoryproject.github.io/wadleigh/).

amzoss commented 6 months ago

The item page is using the generic collection item layout to set up the image viewer, which uses the simple_image_viewer include. On your index or home page, you're using the inline image include. These two includes have different HTML for displaying images. If you want the home page to look like the item page, you could try using the image viewer include on the home page, or you could create a modified version of it to use on the homepage if it needs some changes to work on that page.

(On my machine, it looks like both includes are working as intended. The image on the home page doesn't look distorted to me, just a different size from the item page, and with an added colored border for the caption, and aligned to the left instead of the center.)