summaryrefslogtreecommitdiffstats
path: root/lib/generate/site/index.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-09 08:17:37 +0200
committerSamy Pessé <samypesse@gmail.com>2014-04-09 08:17:37 +0200
commit1b432288f041baef2ebe54c96a7a86f547b14c67 (patch)
tree8856ef41c7f38e135d84c8f5f3e4363c91459569 /lib/generate/site/index.js
parent2182baa2e9bf520943871c52340066cfdd28ba0b (diff)
parentfa2f82d52f34b725483f0fd55be3cc9b04f7dc9b (diff)
downloadgitbook-1b432288f041baef2ebe54c96a7a86f547b14c67.zip
gitbook-1b432288f041baef2ebe54c96a7a86f547b14c67.tar.gz
gitbook-1b432288f041baef2ebe54c96a7a86f547b14c67.tar.bz2
Merge branch 'optional-github' of https://github.com/mrpotes/gitbook into mrpotes-optional-github
Diffstat (limited to 'lib/generate/site/index.js')
-rw-r--r--lib/generate/site/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js
index fab2696..4bea547 100644
--- a/lib/generate/site/index.js
+++ b/lib/generate/site/index.js
@@ -49,7 +49,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,
@@ -153,4 +153,4 @@ Generator.prototype.finish = function() {
.then(this.writeSearchIndex);
};
-module.exports = Generator; \ No newline at end of file
+module.exports = Generator;