How do you add images to the feed for a post?

twitter logo ・1 min read

I tried using cover_image in the metadata. That applied an image to the post itself, but the image didn't appear in feeds for that image. For example, images appear like the following:

Alt Text

Is there something additional you need to do in order to make this happen?

Here are my guesses:
1.) Cover images need to fix certain width/height constraints to appear in the feeds
2.) Images need to be approved to appear in the feeds
3.) There's another metadata tag I need to add to posts.

Any help would be appreciated.

For additional context: Here's a screenshot of my post with the cover_image.

Alt Text

Here's a screenshot of my post in the feed:

Alt Text

twitter logo DISCUSS (2)
markdown guide

So the way this works is, if your post is at the top of the list on the homepage
(which is slightly random) - your cover photo will be shown.

However, if you post a video (ours was a video snippet), then a thumbnail of the video is always shown. I guess this is to signify that the post is a video.

Hope that helps!

Classic DEV Post from Jun 20

Seeing Context with `grep`

Some neat tricks to help understand where in the file your match is showing up.

Bob Cavezza profile image
Bob Cavezza is an engineering leader and full stack engineer in the Boston Engineering and Boston Startup Community.