Skip to content

Commit

Permalink
Create a copy of the page collection for rendering purpose
Browse files Browse the repository at this point in the history
Fixes #57
  • Loading branch information
LaurentGoderre committed Mar 6, 2017
1 parent a5dbf26 commit a5f51a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/assemble.js
Expand Up @@ -391,7 +391,7 @@ module.exports = function(grunt) {
var renderPages = function(assemble, next) {
grunt.verbose.writeln(('\n' + 'Assembling pages...').yellow);

async.forEach(assemble.options.pages, function(page, done) {
async.forEach(assemble.options.pages.slice(), function(page, done) {
grunt.verbose.writeln(require('util').inspect(page));

build(page, assemble, function(err, result) {
Expand Down

0 comments on commit a5f51a0

Please sign in to comment.