220 字
1 分钟
Fuwari 使用指南
本博客模板基于 Astro 构建。本指南未提及的内容,可在 Astro 文档 中找到答案。
文章的 Front-matter
---title: 我的第一篇博客published: 2023-09-09description: 这是我的新 Astro 博客的第一篇文章。image: ./cover.jpgtags: [Foo, Bar]category: 前端draft: false---| 属性 | 说明 |
|---|---|
title | 文章标题 |
published | 文章发布日期 |
description | 文章简短描述,会显示在首页 |
image | 文章封面图路径。 1. 以 http:// 或 https:// 开头:使用网络图片2. 以 / 开头:图片在 public 目录3. 无前缀:相对于 markdown 文件路径 |
tags | 文章标签 |
category | 文章分类 |
draft | 是否为草稿,草稿不会对外显示 |
文章文件存放位置
文章文件应放在 src/content/posts/ 目录下。你也可以创建子目录来更好地组织文章和资源。
src/content/posts/├── post-1.md└── post-2/ ├── cover.png └── index.md