221 字
1 分钟
Fuwari 简明使用指南

封面图来源:来源

这个博客模板基于 Astro 构建。本指南没有提到的内容,可以在 Astro 文档 里找到答案。

文章的 Front-matter#

---
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
---
属性说明
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/
作者
Lorem Ipsum
发布于
2024-04-01
许可协议
CC BY-NC-SA 4.0
评论