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

このコミットが含まれているのは:
Izaya 2018-10-06 23:16:33 +10:00
コミット 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">')