646 字
3 分钟
帖子开头frontmatter

本文许可:转载时转载请注明出处

给自己自用的帖子开头备注#

---
title: 帖子开头frontmatter
published: 2025-11-07
pinned: false
description: while循环版
tags: [作业]
category: Python
licenseName: 转载请注明出处
author: 遇缘
draft: false
date: 2025-11-07
pubDate: 2025-11-07
---
字段值含义
titleMarkdown Tutorial文章标题,会出现在浏览器标签、列表页、SEO 等位置。
published2025-01-20正式“发表”日期,可用于排序、归档、RSS。
pinnedtrue置顶标志,主题或列表页可把这篇文章固定到最前面。
descriptionA simple example of a Markdown blog post.摘要/副标题,用于 SEO、社交媒体卡片、列表页缩略。
tags[Markdown, Blogging]标签,方便按关键词聚合、搜索、做标签云。
categoryExamples大分类,可做顶部导航或侧边栏分类菜单。
licenseNameUnlicensed版权协议名称,显示在文章底部或“关于”小字。
authoremn178作者署名。
sourceLinkhttps://github.com/emn178/markdown原文/源码链接,方便读者跳转到仓库查看源文件。
draftfalse不是草稿,允许被编译和发布;设为 true 时整篇会被忽略。
date2025-01-20部分主题用 date 做排序或显示,优先级可能高于 published。
image{ url, alt }封面图:给出完整 URL 和替代文本,用于社交媒体卡片、列表页缩略图。
pubDate2025-01-20RSS、JSON Feed 里常用的“发布日期”字段,与 published 重复时以主题模板为准。

这个是完整版,自己需要自己改#

---
title: Markdown Tutorial
published: 2025-01-20
pinned: true
description: A simple example of a Markdown blog post.
tags: [Markdown, Blogging]
category: Examples
licenseName: "Unlicensed"
author: emn178
sourceLink: "https://github.com/emn178/markdown"
draft: false
date: 2025-01-20
image:
url: 'https://example.com/image.jpg'
alt: '图片描述'
pubDate: 2025-01-20
---

这下面的是视频插入的格式

<iframe width="100%" height="468" src="//player.bilibili.com/player.html?bvid=BV1GM4m1m7ZD&p=1&autoplay=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" &autoplay=0> </iframe>

还有图片插入格式

![替代文本](图片URL "可选标题")

与剧透插入格式

:spoiler[文本]

以下是其他文本备份:

GitHub Repository Cards#

You can add dynamic cards that link to GitHub repositories, on page load, the repository information is pulled from the GitHub API.

matsuzaka-yukiMizuki

Create a GitHub repository card with the code ::github{repo="matsuzaka-yuki/Mizuki"}.

::github{repo="matsuzaka-yuki/Mizuki"}

Admonitions#

Following types of admonitions are supported: note tip important warning caution

Basic Syntax#

:::note
Highlights information that users should take into account, even when skimming.
:::
:::tip
Optional information to help a user be more successful.
:::

Custom Titles#

The title of the admonition can be customized.

:::note[MY CUSTOM TITLE]
This is a note with a custom title.
:::

GitHub Syntax#

> [!NOTE]
> The GitHub syntax is also supported.
> [!TIP]
> The GitHub syntax is also supported.

Spoiler#

You can add spoilers to your text. The text also supports Markdown syntax.

The content !

The content :spoiler[is hidden **ayyy**]!
帖子开头frontmatter
https://mikufans.yuzhiyuan.top/posts/帖子开头自用/
作者
遇缘
发布于
2025-11-07
许可协议
CC BY-NC-SA 4.0

分享文章

生成精美分享图或复制链接,与更多人分享本文。

继续阅读

换条路线

从其他文章中稳定抽取

最后更新于 ,距今已过 331 天

部分内容可能已过时