2:80eb1f7784c4 | 3:f22a275a3a33 |
---|---|
158 end | 158 end |
159 | 159 |
160 -- Do main page | 160 -- Do main page |
161 local main_tpl = templates.init(layouts_dir.."/main.html"); | 161 local main_tpl = templates.init(layouts_dir.."/main.html"); |
162 | 162 |
163 main_tpl:saverender("index.html", { title = blog_title, posts = posts }); | 163 main_tpl:saverender(output_dir.."index.html", { title = blog_title, posts = posts }); |
164 | 164 |
165 msg_info("%s post%s published, %d post%s unpublished", #posts, #posts ~= 1 and "s" or "", unpublished, unpublished ~= 1 and "s" or ""); | 165 msg_info("%s post%s published, %d post%s unpublished", #posts, #posts ~= 1 and "s" or "", unpublished, unpublished ~= 1 and "s" or ""); |
166 | 166 |
167 msg_info(" - - - "); | 167 msg_info(" - - - "); |
168 | 168 |