Move drafts config up to a top level directory data file so that any content file can be a draft, not just blog posts

This commit is contained in:
Zach Leatherman committed 2023-01-23 17:15:18 -06:00
1 parent f9060d7ebd
commit 25ba65a605
3 files changed
+32 -31

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ module.exports = function(eleventyConfig) {
});
});
// Drafts implementation, see `content/blog/blog.11tydata.js` for additional code.
// Drafts implementation, see `content/content.11tydata.js` for additional code.
// This section *could* be simplified to an environment variable in an npm script,
// but this way an ENV is not required and this code works cross-platform.
eleventyConfig.addPlugin(function enableDrafts(eleventyConfig) {