Unnecessary comment [skip ci]
This commit is contained in:
parent
3095c1bffe
commit
d3e0150595
@ -3,7 +3,6 @@ function eleventyComputedPermalink() {
|
|||||||
// `addGlobalData` acts like a global data file and runs the top level function it receives.
|
// `addGlobalData` acts like a global data file and runs the top level function it receives.
|
||||||
return (data) => {
|
return (data) => {
|
||||||
if(data.draft) {
|
if(data.draft) {
|
||||||
// BUILD_DRAFTS is set in eleventy.config.js
|
|
||||||
if(process.env.BUILD_DRAFTS) {
|
if(process.env.BUILD_DRAFTS) {
|
||||||
return data.permalink;
|
return data.permalink;
|
||||||
}
|
}
|
||||||
@ -21,7 +20,6 @@ function eleventyComputedExcludeFromCollections() {
|
|||||||
// `addGlobalData` acts like a global data file and runs the top level function it receives.
|
// `addGlobalData` acts like a global data file and runs the top level function it receives.
|
||||||
return (data) => {
|
return (data) => {
|
||||||
if(data.draft) {
|
if(data.draft) {
|
||||||
// BUILD_DRAFTS is set in eleventy.config.js
|
|
||||||
if(process.env.BUILD_DRAFTS) {
|
if(process.env.BUILD_DRAFTS) {
|
||||||
return data.eleventyExcludeFromCollections;
|
return data.eleventyExcludeFromCollections;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user