Skip to content

Commit

Permalink
Shuffle pages (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Apr 28, 2021
1 parent b696dc7 commit f1bd6ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ protected function pages()
}

return in_array($page->url(), $this->config['exclude']);
})->sortBy(function ($page) {
return str_replace('/', '', $page->url());
});
})->shuffle();
}

protected function makeContentGenerationClosures($pages, $request)
Expand Down

0 comments on commit f1bd6ff

Please sign in to comment.