Closed jahirfiquitiva closed 6 months ago
Your idea is excellent, and it aligns with the original TODO list.
https://github.com/zce/velite/issues/68
PR welcome if possible.
@jahirfiquitiva https://velite.js.org/guide/velite-schemas#options-absoluteroot
BTW. I strongly recommend using relative path reference assets in Markdown for better maintainability and portability.
root
├── content
│ └── posts
│ └── hello-world
│ ├── reference-asset.png
│ └── index.md
├── public
├── package.json
└── velite.config.js
Hey
I would like to request a feature so that when we use
s.image
we can configure it to not copy the file to any folder.For example...
I have this frontmatter
s.image
would read that file in./public/media/images/blog/blog-post-cover.jpg
, meaning it is already in that folder, no need to copy it, and return the image metadata it already does.Maybe
cover
would need the whole path (./public/media/images/blog/blog-post-cover.jpg
) so thats.image
checked right there and not try to figure out the root folder.Thanks in advance!