feat: ✨ add drafts
This commit is contained in:
parent
b195c84f12
commit
509449c9e5
2 changed files with 23 additions and 1 deletions
|
@ -32,7 +32,11 @@ export default async function (eleventyConfig) {
|
|||
eleventyConfig.addPassthroughCopy('./src/img/sebin.png');
|
||||
eleventyConfig.addWatchTarget('./src/img/sebin.png');
|
||||
|
||||
eleventyConfig.addCollection('posts', (collection) => collection.getFilteredByGlob('./src/posts/*.md'));
|
||||
eleventyConfig.addCollection('posts', (collection) =>
|
||||
process.env.ELEVENTY_PRODUCTION
|
||||
? collection.getFilteredByGlob('./src/posts/*.md')
|
||||
: collection.getFilteredByGlob('./src/{posts,drafts}/*.md')
|
||||
);
|
||||
|
||||
eleventyConfig.addPlugin(eleventyPluginCiu);
|
||||
eleventyConfig.addPlugin(eleventyPluginEmbedEverything);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue