Astro 初体验


安装项目

通过 cli 创建项目可以选择博客模板

pnpm create astro@latest

创建第一个博客

./content/blog 创建 **.md 文件, 在文件头部添加属性

---
title: "我的第一篇博客"
description: "欢迎来到我的第一篇博客!"
heroImage: "./../../assets/blog-placeholder-1.jpg"
pubDate: "Nov 14 2025"
---

欢迎来到我的第一篇博客!

这是使用 Astro 创建的第一个博客文章。希望你喜欢这个平台!

...

title: 标题

description: 描述

heroImage: 头图

pubDate: 发布时间