646 字
3 分钟
帖子开头frontmatter
本文许可:转载时转载请注明出处
给自己自用的帖子开头备注
---title: 帖子开头frontmatterpublished: 2025-11-07pinned: falsedescription: while循环版tags: [作业]category: PythonlicenseName: 转载请注明出处author: 遇缘draft: falsedate: 2025-11-07pubDate: 2025-11-07---| 字段 | 值 | 含义 |
|---|---|---|
title | Markdown Tutorial | 文章标题,会出现在浏览器标签、列表页、SEO 等位置。 |
published | 2025-01-20 | 正式“发表”日期,可用于排序、归档、RSS。 |
pinned | true | 置顶标志,主题或列表页可把这篇文章固定到最前面。 |
description | A simple example of a Markdown blog post. | 摘要/副标题,用于 SEO、社交媒体卡片、列表页缩略。 |
tags | [Markdown, Blogging] | 标签,方便按关键词聚合、搜索、做标签云。 |
category | Examples | 大分类,可做顶部导航或侧边栏分类菜单。 |
licenseName | Unlicensed | 版权协议名称,显示在文章底部或“关于”小字。 |
author | emn178 | 作者署名。 |
sourceLink | https://github.com/emn178/markdown | 原文/源码链接,方便读者跳转到仓库查看源文件。 |
draft | false | 不是草稿,允许被编译和发布;设为 true 时整篇会被忽略。 |
date | 2025-01-20 | 部分主题用 date 做排序或显示,优先级可能高于 published。 |
image | { url, alt } | 封面图:给出完整 URL 和替代文本,用于社交媒体卡片、列表页缩略图。 |
pubDate | 2025-01-20 | RSS、JSON Feed 里常用的“发布日期”字段,与 published 重复时以主题模板为准。 |
这个是完整版,自己需要自己改
---title: Markdown Tutorialpublished: 2025-01-20pinned: truedescription: A simple example of a Markdown blog post.tags: [Markdown, Blogging]category: ExampleslicenseName: "Unlicensed"author: emn178sourceLink: "https://github.com/emn178/markdown"draft: falsedate: 2025-01-20image: 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>还有图片插入格式
与剧透插入格式
: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.
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
:::noteHighlights information that users should take into account, even when skimming.:::
:::tipOptional 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/帖子开头自用/分享文章
生成精美分享图或复制链接,与更多人分享本文。
继续阅读
最后更新于 ,距今已过 331 天
部分内容可能已过时