summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/generate/site/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/generate/site/index.js b/lib/generate/site/index.js
index 357db93..4bea547 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() {