Code::TidyAll::Plugin::YAMLFrontMatter - TidyAll plugin for validating YAML Front Matter
version 1.000001
In your .tidyallrc file:
[YAMLFrontMatter] select = **/*.md required_top_level_keys = title layout
This is a validator plugin for Code::TidyAll that can be used to check that files have valid YAML Front Matter, like Jekyll et al use.
It will complain if:
required_top_level_keys
Keys that must be present at the top level of the YAML Front Matter.
encoding
The encoding the file is in. Defaults to UTF-8 (just like Jekyll 2.0 and later.)
Jekyll's Front Matter Documentation
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.
Mark Fowler <mfowler@maxmind.com>
This software is copyright (c) 2017 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.
To install Code::TidyAll::Plugin::YAMLFrontMatter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Code::TidyAll::Plugin::YAMLFrontMatter
CPAN shell
perl -MCPAN -e shell install Code::TidyAll::Plugin::YAMLFrontMatter
For more information on module installation, please visit the detailed CPAN module installation guide.