285 字
1 分钟
Fuwari 简单使用指南
2024-04-01
无标签

封面图片来源: 来源

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

文章的前言部分 (Front-matter)#

---
title: 我的第一篇博客文章
published: 2023-09-09
description: 这是我的新 Astro 博客的第一篇文章
image: ./cover.jpg
tags: [示例标签1, 示例标签2]
category: 前端开发
draft: false
---
AttributeDescription
title文章的标题
published文章发布的日期
description文章的简短描述。在首页显示
imageThe cover image path of the post.
1. Start with http:// or https://: Use web image
2. Start with /: For image in public dir
3. With none of the prefixes: Relative to the markdown file
tags文章的标签
category文章的分类
draft如果文章仍是草稿,则不会显示
image翻译:
文章的封面图片路径。
1. 以 http:// 或 https:// 开头:使用网络图片
2. 以 / 开头:位于 public 目录中的图片
3. 无前缀:相对于 markdown 文件的路径

文章文件的存放位置#

您的文章文件应放置在src/content/posts/ 目录下。您也可以创建子目录来更好地组织文章和资源文件。

src/content/posts/
├── post-1.md
└── post-2/
├── cover.png
└── index.md
Fuwari 简单使用指南
https://derckhanna.github.io/ForestBlog-Source/posts/guide/
作者
Snowy Owl hydrogen flare
发布于
2024-04-01
许可协议
CC BY-NC-SA 4.0