summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-03-31 12:59:26 -0700
committerSamy Pessé <samypesse@gmail.com>2014-03-31 12:59:26 -0700
commitc3a181a50db02774cbba3853bb1f6e17c51eb8f0 (patch)
treeb9c6532ee58f3450a30677c40de1ccbc28008bb0
parent0fdd31dc39fab120a73c78e86e38f4cd79ab254d (diff)
downloadgitbook-c3a181a50db02774cbba3853bb1f6e17c51eb8f0.zip
gitbook-c3a181a50db02774cbba3853bb1f6e17c51eb8f0.tar.gz
gitbook-c3a181a50db02774cbba3853bb1f6e17c51eb8f0.tar.bz2
Fix author link
-rw-r--r--lib/generate/index.js1
-rw-r--r--templates/includes/book/summary.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/generate/index.js b/lib/generate/index.js
index c265be3..73d1079 100644
--- a/lib/generate/index.js
+++ b/lib/generate/index.js
@@ -48,6 +48,7 @@ var generate = function(root, output, options) {
root: root,
output: output,
locals: {
+ githubAuthor: options.github.split("/")[0],
githubId: options.github,
title: options.title,
summary: summary
diff --git a/templates/includes/book/summary.html b/templates/includes/book/summary.html
index 99c226c..52eeb2f 100644
--- a/templates/includes/book/summary.html
+++ b/templates/includes/book/summary.html
@@ -4,7 +4,7 @@
<a href="{{ basePath }}/README.html">Introduction</a>
</li>
<li>
- <a href="https://github.com/{{ owner }}" target="blank">About the author</a>
+ <a href="https://github.com/{{ githubAuthor }}" target="blank">About the author</a>
</li>
<li class="divider"></li>
{% for item in summary.chapters %}