mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4mobile wallpaper 5mobile wallpaper 6
267 字
1 分钟
Simple Guides for xinStar
2024-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文章发布的日期。
pinned这篇文章是否固定在文章列表的顶部。
priority固定文章的优先级。数值越小优先级越高(0, 1, 2…)。
description文章的简短描述。在首页显示。
image文章的封面图片路径。
1. 以 http://https:// 开头:使用网络图片
2. 以 / 开头:用于 public 目录中的图片
3. 无前缀:相对于 Markdown 文件
tags文章的标签。
category文章的分类。
licenseName文章内容的许可证名称。
author文章的作者。
sourceLink文章内容的源链接或参考。
draft这篇文章是否仍在草稿中,不会被显示。

文章文件放置位置#

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

src/content/posts/
├── post-1.md
└── post-2/
├── cover.webp
└── index.md
分享

如果这篇文章对你有帮助,欢迎分享给更多人!

Simple Guides for xinStar
https://xinvstar.xyz/posts/guide/
作者
新v学员
发布于
2024-04-01
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时

目录