234 字
1 分钟
简单指南
2023-04-01

封面图片来源: 来源

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

文章前言#

---
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. St以 http://https://开头:使用网页图片
2. 以 / 开头:图像在public 文件夹
3. 不带任何前缀:相对于 markdown 文件
tags帖子的标签。
category帖子的类别。
draft如果该帖子仍为草稿,则不会显示。

在哪里放置帖子文件#

您的帖子文件应放在 src/content/posts/ 目录中。您还可以创建子目录以更好地组织您的帖子和资产。

src/content/posts/
├── post-1.md
└── post-2/
    ├── cover.png
    └── index.md
简单指南
https://github.vconlln.io/posts/guide/
作者
Vc0n1Ln
发布于
2023-04-01
许可协议
CC BY-NC-SA 4.0