diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output/base.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/output/base.js b/lib/output/base.js index 117fd4c..868b85b 100644 --- a/lib/output/base.js +++ b/lib/output/base.js @@ -189,6 +189,11 @@ Output.prototype.onRelativeLink = function(currentPage, href) { if (to) { href = to.path; + // Change README path to be "index.html" + if (href == this.book.readme.path) { + href = 'index.html'; + } + // Recalcul as relative link href = currentPage.relative(href); |