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
---
AttributeDescription
title标题
published发布时间
description简单描述
imageThe cover image path of the post.
1. Start with http:// or https://: Use web image
2. Start with /: For image in public dir
3. 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
写博客指南
https://hblog.echocity.cn/posts/guide/
Author
HUI
Published at
2024-04-01
License
CC BY-NC-SA 4.0