fuwari/src/content/posts/cover.md
2023-10-21 10:52:01 +08:00

961 B

title published description image tags
Cover Image Example 2023-09-01 How to set a cover image using the cover attribute. https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/208fc754-890d-4adb-9753-2c963332675d/width=2048/01651-1456859105-(colour_1.5),girl,_Blue,yellow,green,cyan,purple,red,pink,_best,8k,UHD,masterpiece,male%20focus,%201boy,gloves,%20ponytail,%20long%20hair,.jpeg
Fuwari
Blogging
Customization

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"
---