mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-11 14:52:52 +01:00
feat: use .ts instead of .yaml for configurations
This commit is contained in:
@@ -6,16 +6,17 @@ image: 'https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/208fc754-890d-4adb-9753
|
||||
tags: ["Fuwari", "Blogging", "Customization"]
|
||||
---
|
||||
|
||||
# How to set a cover image using the cover attribute
|
||||
## Set the cover image using the `image` 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.
|
||||
Edit your article: At the top of your Markdown file, include the frontmatter section. Set the `image` attribute to the path of your image file.
|
||||
|
||||
```markdown
|
||||
---
|
||||
title: "Your Article Title"
|
||||
published: 2023-10-05
|
||||
cover: "/images/my-cover-image.jpg"
|
||||
image: "/images/my-cover-image.jpg"
|
||||
---
|
||||
```
|
||||
Web URLs are also supported.
|
||||
|
||||
Reference in New Issue
Block a user