225 字
1 分钟
简单指南 - Fuwari 博客模板
封面图片来源: Source
此博客模板是使用 Astro.对于本指南中未提及的内容,您可以在 Astro Docs.
帖子的前置
---title: My First Blog Postpublished: 2023-09-09description: This is the first post of my new Astro blog.image: ./cover.jpgtags: [Foo, Bar]category: Front-enddraft: false---| Attribute | Description |
|---|---|
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 简单指南 - Fuwari 博客模板
https://fuwari.vercel.app/posts/guide/简单指南/