-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
G-image only works with relative path in markdown files #14
Comments
Hello, I made a plugin to solve exactly this issue. You may have a look here: https://github.com/tyrion/gridsome-plugin-netlify-cms-paths I hope it can be useful, until a proper fix is released |
Works like a charm, thank you! |
How do i make relative path work when nested ind gridsome-plugin-netlify-cms-paths ? query PageHome { frontpage (path: "/"){ the_firm{ heading text image } approach{ heading text image } section_image_one{ heading cover_image (width: 1400, height: 800) text layout } section_image_two{ heading cover_image (width: 1400, height: 800) text layout } section_image_three{ heading text cover_image (width: 1400, height: 800) layout } } } |
In my case this works
But this
no. Can anyone explain why? Official docs does nott show how to debug this case |
I fixed using |
Hi, I have encountered the same problem. |
How did you fix this issue using static? I'm still having the same exact problem. Nothing but blurred images when I deploy. Thanks. |
In my case, when i used <img="../images/my-image.jpg"> However, to also see images while i was in development mode (
While admittedly it was quite messy to have two copies of the |
Unless an image's path is
./image-name.jpg
it shows up as a regular<img>
and doesn't have all the fancysrcset
and other stuff that<g-image>
adds. This frustrating because Netlify CMS doesn't support relative paths. Everything has to start with a/
in front, and/
doesn't show up, but./
does.Does anyone know either how to 1.) make relative paths in Netlify CMS, i have googled and have not come up with any solution so far, or 2.) is it possible to add
<g-image>
to ALL images in markdown files regardless of their paths. Thank you in advance.The text was updated successfully, but these errors were encountered: