240 words
1 min

Fuwari 简明指南

封面图片来源:Source

这个博客模板基于 Astro 构建。对于本指南未提及的内容,你可以在 Astro 文档 中寻找答案。

文章的 Frontmatter#

---
title: 我的第一篇博客文章
published: 2023-09-09
description: 这是我的新 Astro 博客的第一篇文章。
image: ./cover.jpg
tags: [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