You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the image isn't being parsed and loaded correctly since vuepress only injected its .vuepress/public path and copied them with copy-plugin. Also, webpack didn't handle the resources in yaml front matter.
Node.js v8.7.0
VuePress 1.7.0
The text was updated successfully, but these errors were encountered:
imfing
changed the title
Relative images in YAML front matter not loaded within custom layout
Relative images in YAML front matter handling in custom layout
Apr 20, 2018
Simply, I want to load images from paths relative to the
README.md
directory in a custom layout.Beause in some cases (customized layouts), image resouces couldn't always be placed under the
.vuepress/public
directory or loaded with markdown.For example, the title/background image for a blog post.
So I'm wondering what's the best practice to achieve so with vuepress.
In my case, the yaml front matter of the
README.md
would expected to be something like:And the
Post.vue
would be like:However, the image isn't being parsed and loaded correctly since vuepress only injected its
.vuepress/public
path and copied them with copy-plugin. Also, webpack didn't handle the resources in yaml front matter.Node.js v8.7.0
VuePress 1.7.0
The text was updated successfully, but these errors were encountered: