diff options
Diffstat (limited to 'lib/generate/index.js')
-rw-r--r-- | lib/generate/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/generate/index.js b/lib/generate/index.js index b9d3d9b..b9edcc4 100644 --- a/lib/generate/index.js +++ b/lib/generate/index.js @@ -71,11 +71,11 @@ var generate = function(root, output, options) { // Copy file and replace markdown file .then(function() { - console.log(files, summary); return Q.all( _.chain(files) .map(function(file) { if (!file) return; + var _html = file.replace(".md", ".html"); // Folder if (file[file.length -1] == "/") { @@ -84,8 +84,8 @@ var generate = function(root, output, options) { ); } - // Markdown file - else if (path.extname(file) == ".md") { + // Markdown file (only from the summary) + else if (path.extname(file) == ".md" && navigation[_html] != null) { return tpl(file, file.replace(".md", ".html")); } |