the images in recipes won't open
ruzkas opened this issue ยท 3 comments
Hi,
I really like your theme. It has all the necessary tools for a food blogger! I was having a problem seeing the images on individual recipe pages. For instance the Austrian Vanilla Crescents page contains many image files none of which open. Is there anything I can do on my end to fix this? Tx.
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.54. Please mark this comment with ๐ or ๐ to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Hey @ruzkas, the image URLs were relative, however, on GitHub Pages there's an additional path segment. So instead of this:
/assets/images/posts/vanilla-crescents-2-large.jpeg
...it needs to be this:
/summer/assets/images/posts/vanilla-crescents-2-large.jpeg
You can fix this by prefixing the image URLs with the base URL, this will turn them into absolute links so that you can avoid the above issue altogether. I've applied the fix in this commit: f5a82c3.
I worked. Thank you very much!