Skip to content

Commit caec961

Browse files
committed
Merge pull request #3 from adam-lynch/patch-1
Prevents error being thrown if site object isn't past
2 parents d8ea900 + b055860 commit caec961

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ var path = require('path');
2020
* @return stream
2121
*/
2222
module.exports = function(site, options) {
23+
site = site || {};
2324
options = _.extend({
2425
baseUrl: '',
2526
sort: 'url',

0 commit comments

Comments
 (0)