made sitelib clean up after itself; note to self: investigate using pipes

This commit is contained in:
Izaya 2018-10-06 23:16:33 +10:00
父節點 f85f9a2b38
當前提交 60c2013872
共有 1 個檔案被更改,包括 1 行新增0 行删除

查看文件

@ -33,6 +33,7 @@ function sitelib.parsepage(s)
f:write(page.md)
f:close()
page.html = io.popen("markdown "..fn):read("*a")
os.execute("rm "..fn)
-- SKS specific stuff starts here
page.html=page.html:gsub("++leftcol",'<div class="left-column">')
page.html=page.html:gsub("++colbreak",'</div><div class="left-column">')