diff options
Diffstat (limited to 'lib/output/base.js')
-rw-r--r-- | lib/output/base.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/output/base.js b/lib/output/base.js index 828a11e..cc4eb8d 100644 --- a/lib/output/base.js +++ b/lib/output/base.js @@ -19,7 +19,7 @@ function Output(book, opts) { _.bindAll(this); this.opts = _.defaults(opts || {}, { - + directoryIndex: true }); this.book = book; @@ -222,7 +222,7 @@ Output.prototype.outputPath = function(filename, ext) { Output.prototype.outputUrl = function(filename, ext) { var href = this.outputPath(filename, ext); - if (path.basename(href) == 'index.html') { + if (path.basename(href) == 'index.html' && this.opts.directoryIndex) { href = path.dirname(href) + '/'; } |