209 字
1 分钟
中文博客使用指南

封面图片来源:查看原图

本站基于 Astro 构建。本文未涉及的内容,可以参考 Astro 文档

文章 Frontmatter#

---
title: 我的第一篇博客
published: 2023-09-09
description: 这是我的第一篇 Astro 博客文章。
image: ./cover.jpg
tags: [示例, 前端]
category: 前端
draft: false
---
属性说明
title文章标题。
published文章发布日期。
description文章简介,会显示在首页。
image文章封面路径:网络图片使用 http://https:// 开头;/ 开头表示 public 目录;其他情况相对于当前 Markdown 文件。
tags文章标签。
category文章分类。
draft是否为草稿;草稿不会对外展示。

文章文件放在哪里#

文章文件应放在 src/content/posts/ 目录中。你也可以创建子目录,以便更好地组织文章和资源。

src/content/posts/
├── post-1.md
└── post-2/
├── cover.png
└── index.md
中文博客使用指南
https://www.uuz.io/posts/guide/
作者
Yooyi
发布于
2024-04-01
许可协议
CC BY-NC-SA 4.0