DEV Community

Cover image for Adding a cover image to your articles
Kehinde Abe
Kehinde Abe

Posted on

Adding a cover image to your articles

Photo by Austin Distel on Unsplash

I ran into some cover image issues when I started writing on not until I came across an article about how to add cover picture/image to your article so that prompt me to write this article to help whoever that might need it.

Note: adding a nice cover image to articles is very essential and you can do that on by adding a cover_image: entry to that block at the top. For example, the block for this post should look like this:

title: Adding a cover image for your articles
published: true
description: "Photo by Austin Distel on Unsplash"
tags: blogging,,coverImages,,article

Enter fullscreen mode Exit fullscreen mode

Get a nice picture/images maintaining the ratio of 1000x420 pixels for better resolution.

Thank you for reading.

Top comments (2)

saveshodhan profile image
Shodhan Save • Edited

I add this snippet in a new post and nothing happens.. what am i missing?

jonasbn profile image
Jonas Brømsø

Did you remember to remove the comments which are there by default?

Please provide your complete snippet if possible