diff options
Diffstat (limited to 'lib/generators/website.js')
-rw-r--r-- | lib/generators/website.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/generators/website.js b/lib/generators/website.js index 01df98c..d40ffa8 100644 --- a/lib/generators/website.js +++ b/lib/generators/website.js @@ -118,7 +118,8 @@ Generator.prototype.finish = function() { return this.copyAssets() .then(this.copyCover) .then(this.writeGlossary) - .then(this.writeSearchIndex); + .then(this.writeSearchIndex) + .then(this.writeLangsIndex) }; // Convert an input file @@ -156,11 +157,11 @@ Generator.prototype.convertFile = function(input) { }; // Write the index for langs -Generator.prototype.langsIndex = function(langs) { +Generator.prototype.writeLangsIndex = function() { var that = this; - + if (!this.book.langs.length) return Q(); return this._writeTemplate(this.templates["langs"], { - langs: langs + langs: this.book.langs }, path.join(this.options.output, "index.html")); }; |