From 50acfa23dc828832248629550a82941ddff89574 Mon Sep 17 00:00:00 2001 From: tbodt Date: Sat, 11 Jul 2026 16:38:04 -0500 Subject: [PATCH] Don't suggest parsing YAML by returning {} 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. --- src/docs/data-custom.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/data-custom.md b/src/docs/data-custom.md index e7a075522c..44724a376d 100644 --- a/src/docs/data-custom.md +++ b/src/docs/data-custom.md @@ -22,7 +22,7 @@ Note that you can also add [Custom Front Matter Formats](/docs/data-frontmatter- {% set codeContent %} export default function (eleventyConfig) { // Receives file contents, return parsed data - eleventyConfig.addDataExtension("yml,yaml", (contents, filePath) => { + eleventyConfig.addDataExtension("fileExtension", (contents, filePath) => { return {}; }); };