for this one we'll need to create a mechanism for including blog drafts during local development but not in production builds.
|
{ |
|
"label": "Jekyll: Build Dev with Drafts", |
|
"detail": "jekyll serve --force_polling --livereload --drafts", |
|
"type": "shell", |
|
"linux": { |
|
"command": "bundle exec jekyll serve --force_polling --livereload --drafts" |
|
}, |
|
"group": { |
|
"kind": "build", |
|
"isDefault": true |
|
}, |
|
"presentation": { |
|
"echo": true, |
|
"reveal": "always", |
|
"focus": false, |
|
"panel": "shared", |
|
"showReuseMessage": true, |
|
"clear": false |
|
} |
|
} |
luckily, the 11ty doc has a handy snippet we can use for that:
https://www.11ty.dev/docs/config-preprocessors/#example-drafts
for this one we'll need to create a mechanism for including blog drafts during local development but not in production builds.
compiler.la/.vscode/tasks.json
Lines 26 to 45 in dafad11
luckily, the 11ty doc has a handy snippet we can use for that:
https://www.11ty.dev/docs/config-preprocessors/#example-drafts