780 B
780 B
title, published, description, cover, tags
| title | published | description | cover | tags | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Cover Image Example | 2022-09-09 | How to set a cover image using the cover attribute. |
|
|
How to set a cover image using the cover attribute
Select an Image: Before you start, make sure you have an image you want to use as a cover. Let's assume its filename is my-cover-image.jpg and it's located in an images directory at the root of your site.
Edit your article: At the top of your Markdown file, include the frontmatter section. Add a cover attribute and specify the path to your cover image.
---
title: "Your Article Title"
published: 2023-10-05
cover: "/images/my-cover-image.jpg"
---