232 字
1 分钟
Fuwari 简明指南
封面图来源:Source
这个网站模板基于 Astro 构建。对于本指南未涉及的内容,你可以在 Astro 文档 中找到答案。
文章的 Front-matter(前言信息)
---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