Closed ernie closed 9 months ago
I am experiencing something like this. I am using middleman (4.1.10) and middleman-blog (4.0.1). Was there any fix for this?
@ernie Are you able to Create a PR for some Features that will test this issue. We can then start to look at a fix as it seems an issue still in the latest release. I personally have not used the relative images.
@iwarner I'm sorry, I've long since left the company where I was using Middleman, so this issue no longer affects me.
Hi! As per discussion in #252, this is a quick description of an issue I just ran into.
Scenario:
I am using middleman-blog with the following config:
I am referring to images stored alongside blog posts as outlined here, so, for instance:
This works on the article page, assuming I view the article page first in the preview server. It does not work on the main blog index at
source/blog/index.html.erb
, however. If I access the index first, in fact, the cache will result in a non-working image reference when visiting the article page afterwards.Changing the reference to:
will, as expected, cause the reverse: a working image at
source/blog/index.html.erb
and a broken one on the article page.As of right now, the only workaround I have found is to refer to the absolute source path:
Per @tdreyno, the suspected cause is that "blog 'moves' the image assets along to the new article path, but images references in markdown don't point to that new location."
Thanks so much for looking into this!