201 字
1 分钟
Writing a Blog Post
This blog template is built with Astro. This article is a small, generic example of the file structure and common frontmatter used by a post. The complete current schema and Markdown syntax are maintained in the Content Authoring Guide.
Common frontmatter
---title: "An Example Article"published: 2026-08-01updated: 2026-08-08description: "A short summary for previews."image: ./cover.webptags: [Example, Guide]category: Guidesdraft: falsecomment: true---| Attribute | Description |
|---|---|
title | The title of the post. |
published | The date the post was published. |
pinned | Whether this post is pinned to the top of the post list. |
priority | The priority of the pinned post. Smaller value means higher priority (0, 1, 2…). |
description | A short description of the post. Displayed on index page. |
image | The cover image path of the post. 1. Start with http:// or https://: Use web image2. Start with /: For image in public dir3. With none of the prefixes: Relative to the markdown file |
tags | The tags of the post. |
category | The category of the post. |
licenseName | The license name for the post content. |
author | The author of the post. |
sourceLink | The source link or reference for the post content. |
draft | If this post is still a draft, which won’t be displayed. |
Where to Place the Post Files
Place post files in src/content/posts/. You can create sub-directories to organize articles and their local assets.
src/content/posts/├── example.md└── guides/ ├── cover.webp └── index.mdRelative images such as ./cover.webp are resolved from the current article file.
分享
如果这篇文章对你有帮助,欢迎分享给更多人!
Writing a Blog Post
https://blogstella.xyz/posts/guide/ 部分信息可能已经过时
相关文章 智能推荐
1
MDX Syntax Guide
Guides Learn how to combine Markdown, components, JavaScript expressions, callouts, Wiki Links, math, code groups, and images in an MDX article.
2
Docker入门教程
工具 从零开始的 Docker 全面入门:镜像、容器、仓库三大核心概念,Dockerfile 与 docker compose 详解,数据卷、网络、镜像加速与常用实战命令,附完整可运行示例。
3
LangChain之01:LangChain概述
LangChain 系统梳理 LangChain 的定位、发展脉络、四大支柱与开发准备,并介绍 RAG、Agent 等典型应用场景。
4
LangChain之02:模型的创建与调用
LangChain 系统讲解LangChain模型的创建方式(专用类、init_chat_model、本地Ollama)与调用方式(invoke/stream/batch及异步版本)。
5
LangChain之03:LangSmith的使用
LangChain 介绍 LangChain 生态的调试监控平台 LangSmith:核心功能、账号准备与环境配置,以及如何用代码接入并查看追踪与监控指标。