Fix for index.html to be saved in output_dir

Wed, 20 May 2009 14:43:12 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 20 May 2009 14:43:12 +0100
changeset 3
f22a275a3a33
parent 2
80eb1f7784c4
child 4
cebf96c3b522

Fix for index.html to be saved in output_dir

build.lua file | annotate | diff | comparison | revisions
--- a/build.lua	Wed May 20 14:40:24 2009 +0100
+++ b/build.lua	Wed May 20 14:43:12 2009 +0100
@@ -160,7 +160,7 @@
 -- Do main page
 local main_tpl = templates.init(layouts_dir.."/main.html");
 
-main_tpl:saverender("index.html", { title = blog_title, posts = posts });
+main_tpl:saverender(output_dir.."index.html", { title = blog_title, posts = posts });
 
 msg_info("%s post%s published, %d post%s unpublished", #posts, #posts ~= 1 and "s" or "", unpublished, unpublished ~= 1 and "s" or "");
 

mercurial