Skip to content

添加一种新的 frontmatter 格式#466

Open
neveler wants to merge 1 commit into
HMCL-dev:mainfrom
neveler:front-matter-enhancer
Open

添加一种新的 frontmatter 格式#466
neveler wants to merge 1 commit into
HMCL-dev:mainfrom
neveler:front-matter-enhancer

Conversation

@neveler
Copy link
Copy Markdown
Contributor

@neveler neveler commented Jun 4, 2026

此 frontmatter 写法基于 /**/ 因此支持 /**/ 多行注释的文件会自动将 frontmatter 识别为注释,从而减少对代码编辑器自动补全的干扰。

文件需以 /* @frontmatter 开头,到 */ 之前的内容将作为 YAML 字符串解析。

/* @frontmatter
*/
/* @frontmatter
layout: null
var_a: demo
*/

https://front-matter-enhancer-docs.hmcl.workers.dev

@neveler neveler changed the title 添加一种新的 @frontmatter 格式 添加一种新的 frontmatter 格式 Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant