diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-07 00:02:00 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-07 00:02:00 -0700 |
commit | cf3a64135025666baf9d3537a7327a5c6b6ca19a (patch) | |
tree | c37718f70182c3460e8e11e4ef26ebbfa4bffe44 /lib/generate/site/index.js | |
parent | ec719891a1d652873cb6668d94a141b77adea3df (diff) | |
download | gitbook-cf3a64135025666baf9d3537a7327a5c6b6ca19a.zip gitbook-cf3a64135025666baf9d3537a7327a5c6b6ca19a.tar.gz gitbook-cf3a64135025666baf9d3537a7327a5c6b6ca19a.tar.bz2 |
Fix progress link to README
Diffstat (limited to 'lib/generate/site/index.js')
-rw-r--r-- | lib/generate/site/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js index 1cd63ff..fab2696 100644 --- a/lib/generate/site/index.js +++ b/lib/generate/site/index.js @@ -17,7 +17,9 @@ swig.setFilter('lines', function(content) { // Swig filter for returning a link to the associated html file of a markdown file swig.setFilter('mdLink', function(link) { - return link.replace(".md", ".html"); + var link = link.replace(".md", ".html"); + if (link == "README.html") link = "index.html"; + return link; }); var Generator = function() { |