Skip to content

Commit

Permalink
Update bake.js
Browse files Browse the repository at this point in the history
  • Loading branch information
michplunkett committed Aug 16, 2023
1 parent 133a74e commit 1c9ee44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tasks/bake.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ function bake(resolve) {
const dataDir = 'src/_data/';

// modularize manageEnv from nunjucks.js
// eslint-disable-next-line func-style
const manageEnv = function (env) {
function manageEnv(env) {
// loop over config vars to add to nunjucks global env
// which can be added to project.config.json
for (const k in config) {
Expand Down Expand Up @@ -60,7 +59,7 @@ function bake(resolve) {
env.addFilter(key, func);
}
}
};
}

if (!config.to_bake) {
resolve();
Expand Down

0 comments on commit 1c9ee44

Please sign in to comment.