Using local image as hero image in blog post #528
Unanswered
EdwardDeaver
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hey @EdwardDeaver, Here is an example of how I have implemented local images with blog posts. My example includes an image which is passed in as a prop to the SinglePost component and an openGraph image which is used in the metadata object. Example blog post content:
Example [...blog].index.astro page:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
How do you use a local image in the Image front matter field of a blog post?
Astro is telling me import errors.
'Image's and getImage's src parameter must be an imported image or an URL, it cannot be a string filepath.'
Beta Was this translation helpful? Give feedback.
All reactions