Skip to content

Commit f6ca182

Browse files
authored
Don't suggest parsing YAML by returning {} (#2337)
My friend was following these docs to add YAML support and copied the first snippet that said "yml" and was very confused about why no data was coming out.
1 parent c9488f1 commit f6ca182

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/docs/data-custom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Note that you can also add [Custom Front Matter Formats](/docs/data-frontmatter-
2222
{% set codeContent %}
2323
export default function (eleventyConfig) {
2424
// Receives file contents, return parsed data
25-
eleventyConfig.addDataExtension("yml,yaml", (contents, filePath) => {
25+
eleventyConfig.addDataExtension("fileExtension", (contents, filePath) => {
2626
return {};
2727
});
2828
};

0 commit comments

Comments
 (0)