diff options
Diffstat (limited to 'lib/generate/site/index.js')
-rw-r--r-- | lib/generate/site/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index 1cd63ff..357db93 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -47,7 +47,7 @@ Generator.prototype._writeTemplate = function(tpl, options, output) { title: that.options.title, description: that.options.description, - githubAuthor: that.options.github.split("/")[0], + githubAuthor: that.options.github ? that.options.github.split("/")[0] : "", githubId: that.options.github, githubHost: that.options.githubHost, @@ -151,4 +151,4 @@ Generator.prototype.finish = function() { .then(this.writeSearchIndex); }; -module.exports = Generator;
\ No newline at end of file +module.exports = Generator; |