229 字
1 分钟
Fuwari 使用指南

封面图片来源: Source

这个博客模板使用 Astro 构建。本指南未提及的内容,你可以在 Astro 文档 中找到答案。

文章的 Front-matter#

---
title: 我的第一篇博客文章
published: 2023-09-09
description: 这是我新 Astro 博客的第一篇文章。
image: ./cover.jpg
tags: [Foo, Bar]
category: 前端
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 使用指南
http://blog.zard.loc.cc/posts/guide/
作者
Zard
发布于
2024-04-01
许可协议
CC BY-NC-SA 4.0
评论