documentationgood first issue
Repository metrics
- Stars
- (272 stars)
- PR merge metrics
- (PR metrics pending)
Description
I'm struggling to use bgImage. Would you consider sharing an example of usage?
I'm not able to discover an explicit path that works. No matter what I try, I get Edit: just needed no such file or directory../src/path/to/image.png
What I'd like to do is pull the background image url from page frontmatter. For example, frontmatter contains:
featuredImage:
url: '~/assets/image.png'
and in my getImageOptions() I have bgImage: {path: page.featuredImage?.url.src}, but I get [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined.