I tried writing all this out here, but because I’m a new user I’m limited and it seems to think my code is URLs for some reason (And you’re limited to 2 urls and 1 image as a new user).
Here is the question on StackOverflow all nicely formatted: https://stackoverflow.com/questions/57731571/nested-a-link-elements-inside-an-include-not-rendering-correctly-in-liquid-for-j
I’m wondering if this is a bug with jekyll, liquid, or if I’m just going about it incorrectly.
My structure is essentially this:
I have an index page that is looping through my posts and rendering a subset of their content (the post image and some content). Each truncated post on the index page is a link to the full post, ie the image and text are the content of the link itself. The post has an include that is rendering the post image along with a caption. This caption can potentially contain a link. If it does contain a link, it renders crazy html. If it doesn’t, things are fine.
Is this the right way to go about things? Is there another better way? Is this a bug?
Thanks for the help!