-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers
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.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers