2024-01-26 15:04:36 +00:00
|
|
|
module.exports = function (eleventyConfig) {
|
|
|
|
eleventyConfig.addCollection('posts',collectionApi =>
|
|
|
|
collectionApi.getFilteredByTag("posts")
|
|
|
|
.filter(p => process.env.DEBUG || !p.data.tags.includes("draft"))
|
|
|
|
.filter(p => process.env.DEBUG || p.date < new Date())
|
2024-07-10 11:05:12 +00:00
|
|
|
);
|
2024-01-26 15:04:36 +00:00
|
|
|
}
|