Replies: 3 comments 1 reply
-
It is possible. Option 1: Using One demerit of above option: It will copy each and every image in the Source Content folder, even if you are not using it in any markdown file. A better option 2 is to use a custom remark-plugin, wherein This way, only those images (and their folders) will be copied into the Option 3: For images used with Wikilink and Absolute path (e.g., due to Obsidian or Foam extension of VS Code), only their names will be written inside the markdown files; such images won't have any path info present (if name is unique, else path info present), despite the images being present nested inside folders. |
Beta Was this translation helpful? Give feedback.
-
Thanks for responding... I have way too many images to copy each of them at build time. I actually think that turning all of the images into nuxt-img might be the solution but I haven't quite figured it out yet |
Beta Was this translation helpful? Give feedback.
-
@ManasMadrecha so on your build step you do this every single time right? Because how would you know that it's the latest blog post or one you updated from a while back? |
Beta Was this translation helpful? Give feedback.
-
In my current blog I have a directory structure that looks like this
/blog/2022/05/17
In that folder, I have the markdown file for the post along with any images associated with it. I'm referencing the image relatively in my markdown and it's not displaying. Is there any way to make this work? I would like to have the images associated with the blog post in the same folder.
![wes-hicks-4-EeTnaC1S4-unsplash.jpg](./images/wes-hicks-4-EeTnaC1S4-unsplash.jpg)
Beta Was this translation helpful? Give feedback.
All reactions