163 words
1 minute
Started。
Front-matter of Posts
---title: My First Blog Postpublished: 2020-02-02description: This is the first post of my new Astro blog.cover: ./cover.jpgcoverInContent: falsetags: []category: Guidescomment: truedraft: false---| Attribute | Description |
|---|---|
title | The title of the post. |
published | The date the post was published. |
pinned | Whether this post is pinned to the top of the post list. |
description | A short description of the post. Displayed on index page. |
cover | The cover image path of the post. 1. Start with http:// or https://: For web image 2. Start with /: For image in public dir 3. With none of the prefixes: Relative to the markdown file |
coverInContent | Whether to show the cover image in the post content. |
tags | The tags of the post. |
category | The category of the post 1. Single category: category: Guides 2. Multi-category: category: [Guides, Getting Started] |
licenseName | The license name for the post content. |
author | The author of the post. |
sourceLink | The source link or reference for the post content. |
comment | Whether to enable comment for this post. Default is true. |
draft | If this post is still a draft, which won’t be displayed. |
Started。
/posts/guide/getting-started/ Some information may be outdated