Code::...Matter(3pm)
π NAME π
Code::TidyAll::Plugin::YAMLFrontMatter β it's a TidyAll plugin whose whole job is validating your YAML Front Matter, bestie. That's it. That's the girl. π
β¨ VERSION β¨
version 1.000003 β she's giving mature, she's giving stable, she's giving "we've been here a minute." π
π¦ SYNOPSIS π¦
So you drop this into your .tidyallrc file, like so:
[YAMLFrontMatter]
select = **/*.md
required_top_level_keys = title layout
And that's literally it, you're done, go touch grass. πΈ
π DESCRIPTION π
Okay so real talk: this is a validator plugin for Code::TidyAll, and it checks that your files have valid YAML Front Matter β you know, the exact kind of thing Jekyll et al are obsessed with. Front matter girlies rise up. π
It will complain β and honestly? Fair. Here's the full list of things that make it side-eye you:
- There's no YAML Front Matter at all π
- The YAML Front Matter isn't valid YAML (invalid, bestie, it's giving chaos)
- There's a UTF-8 BOM sitting at the start of the file π
- The file isn't encoded in the configured encoding (
UTF-8by default) - The YAML Front Matter is missing one or more of the configured top level keys
- The YAML Front Matter contains circular references π
π Options π
required_top_level_keysβ the keys that must be present at the top level of the YAML Front Matter. No skips, no "oops I forgot", none of that.encodingβ what encoding the file is in. Defaults toUTF-8, just like Jekyll2.0and later. Iconic behaviour, honestly.
π₯ SEE ALSO π₯
- Jekyll's Front Matter Documentation <https://jekyllrb.com/docs/frontmatter/>
π«Ά SUPPORT π«Ά
Please report all issues with this code using the GitHub issue tracker at <https://github.com/maxmind/Code-TidyAll-Plugin-YAMLFrontMatter/issues>.
Bugs may be submitted through <https://github.com/maxmind/Code-Tidyall-Plugin-YAMLFrontMatter/issues>.
fr fr, if something's broken, tell the maintainers, don't just suffer in silence. That's not the vibe. π
β AUTHOR β
Mark Fowler <mfowler@maxmind.com> β the main character. π
π§ CONTRIBUTORS π§
- Dave Rolsky
<autarch@urth.org> - Greg Oschwald
<goschwald@maxmind.com>
(Shoutout to the whole group chat, we love a collaborative effort. π)
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2019 by MaxMind, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
And that's the whole page, bestie! π Stay valid, stay tidy, stay hydrated. π¦
This cutie was documented as perl v5.36.0 on 2022-10-14, and yes, the manual name really does get folded in right here at the bottom β Code::...Matter(3pm), mwah. π
π¦ where this page comes from
- ubuntu noble: libcode-tidyall-plugin-yamlfrontmatter-perl 1.000003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcode-tidyall-plugin-yamlfrontmatter-perl 1.000003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcode-tidyall-plugin-yamlfrontmatter-perl 1.000003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms