265 字
1 分钟
Fuwari 简易指南
封面图片来源: 来源
这个博客模板是用 Astro。 搭建的。对于本指南中未提及的内容,你可以在Astro 文档中查找答案。
文章的前置信息(Front-matter)
---
title: 我的第一篇博客文章
published: 2023-09-09
description: 这是我的新Astro博客的第一篇文章。
image: ./cover.jpg
tags: [Foo, Bar]
category: Front-end
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