367 字
2 min
Simple Guides for Fuwari

Cover image source: Source 封面图片来源:来源

This blog template is built with Astro. For the things that are not mentioned in this guide, you may find the answers in the Astro Docs. 此博客模板使用 Astro 构建。对于本指南未提及的内容,您可以在 Astro 文档中找到答案。

Front-matter of Posts#

文章的前言配置(Front-matter)#

---
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
---
AttributeDescription
titleThe title of the post.
文章的标题。
publishedThe date the post was published.
文章发布的日期。
descriptionA short description of the post. Displayed on index page.
文章的简短描述。显示在索引页上。
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
文章的封面图片路径。
1. 以 http://https:// 开头:使用网络图片
2. 以 / 开头:指向 public 目录中的图片
3. 无前缀:相对于 Markdown 文件的位置
tagsThe tags of the post.
文章的标签。
categoryThe category of the post.
文章的分类。
draftIf this post is still a draft, which won’t be displayed.
如果文章仍是草稿,则不会显示。

Where to Place the Post Files#

文章文件的存放位置#

Your post files should be placed in src/content/posts/ directory. You can also create sub-directories to better organize your posts and assets. 您的文章文件应放置在 src/content/posts/ 目录中。您也可以创建子目录以更好地组织文章和资源。

src/content/posts/
├── post-1.md
└── post-2/
├── cover.png
└── index.md
Simple Guides for Fuwari
https://fuwari.oh1.top/posts/default/
作者
yCENzh
发布于
1002-04-01