diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-02-04 20:29:49 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-02-04 20:29:49 +0100 |
commit | 82a1a151e439a85825302293b4602fb3e8cc4b9e (patch) | |
tree | ea4829a62b2e16ae58b0e2633ec79b158daf8259 /lib/generator.js | |
parent | ff6e8387fbc6f0936f7447b41ede20af2ae4d2fd (diff) | |
download | gitbook-82a1a151e439a85825302293b4602fb3e8cc4b9e.zip gitbook-82a1a151e439a85825302293b4602fb3e8cc4b9e.tar.gz gitbook-82a1a151e439a85825302293b4602fb3e8cc4b9e.tar.bz2 |
Correctly copy cover for sub books
Diffstat (limited to 'lib/generator.js')
-rw-r--r-- | lib/generator.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generator.js b/lib/generator.js index 6557461..f7f319d 100644 --- a/lib/generator.js +++ b/lib/generator.js @@ -58,7 +58,7 @@ BaseGenerator.prototype.copyCover = function() { ]) .fail(function() { // If orignaly from multi-lang, try copy from parent - if (!that.isMultilingual()) return; + if (!that.book.isSubBook()) return; return Q.all([ fs.copy(path.join(that.book.parentRoot(), "cover.jpg"), path.join(that.options.output, "cover.jpg")), |