160 words
1 minutes
写博客指南
Cover image source: Source
This blog template is built with Astro. For the things that are not mentioned in this guide, you may find the answers in the Astro Docs.
格式要求
---
title: My First Blog Post
published: 2023-09-09
description: This is the first post of my new Astro blog.
image: ./cover.jpg
tags: [Foo, Bar]
category: Front-end
draft: false
---
| Attribute | Description |
|---|---|
title | 标题 |
published | 发布时间 |
description | 简单描述 |
image | The cover image path of the post. 1. Start with http:// or https://: Use web image2. Start with /: For image in public dir3. With none of the prefixes: Relative to the markdown file |
tags | 标签 |
category | 分类 |
draft | 是否为草稿 |
文章放在哪里
你的文章应该放在 src/content/posts/ 目录中. 你也可以创建子文件夹来放其他文件。
src/content/posts/
├── post-1.md
└── post-2/
├── cover.png
└── index.md