We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 864f53c commit 3f15b1fCopy full SHA for 3f15b1f
.eleventy.js
@@ -1,3 +1,5 @@
1
+import yaml from 'js-yaml';
2
+
3
// development host for playground proxy
4
const PLAYGROUND_PROXY_HOST = 'http://localhost:8788';
5
@@ -13,6 +15,8 @@ const drafts = [
13
15
];
14
16
17
export default async function(eleventyConfig) {
18
+ eleventyConfig.addDataExtension('yaml', (contents) => yaml.load(contents));
19
20
eleventyConfig.addPassthroughCopy('.htaccess');
21
eleventyConfig.addPassthroughCopy('LICENSE.md');
22
eleventyConfig.addPassthroughCopy('_headers');
package.json
@@ -31,5 +31,8 @@
31
"rollup": "^4.40.1",
32
"wrangler": "^4.6.0",
33
"yaml": "^2.8.0"
34
+ },
35
+ "dependencies": {
36
+ "js-yaml": "^4.1.0"
37
}
38
0 commit comments