Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontmatter support #32

Open
groenroos opened this issue Jul 26, 2022 · 0 comments
Open

Frontmatter support #32

groenroos opened this issue Jul 26, 2022 · 0 comments

Comments

@groenroos
Copy link

With static site generators like Jekyll or Eleventy and others, it's common for a single file to have a YAML document to provide metadata, followed by the content document in an unrelated markup language;

---
title: My page
description: This is my page
permalink: /my-page
---

<h1>Hello</h1>
<p>This is my page</p>

I'd like to use the yaml-lint package to lint the frontmatter document of these files; however, I would ideally want to avoid writing a custom wrapper to iterate through the filesystem, and extract the YAML from each file to be linted individually.

According to this interpretation of the YAML spec, the markup following a YAML document delimiter could be simply ignored.

Is frontmatter support something that could be introduced to this project? Thank you!

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

No branches or pull requests

1 participant