225 字
1 分钟
简单指南 - Fuwari 博客模板

封面图片来源: Source

此博客模板是使用 Astro.对于本指南中未提及的内容,您可以在 Astro Docs.

帖子的前置#

---
title: My First Blog Post
published: 2023-09-09
description: This is the first post of my new Astro blog.
image: ./cover.jpg
tags: [Foo, Bar]
category: Front-end
draft: false
---
AttributeDescription
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/简单指南/
作者
李钧宇
发布于
2024-04-01
许可协议
CC BY-NC-SA 4.0