Browse Source

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

master
Izaya 2 years ago
parent
commit
60c2013872
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      sitelib.lua

+ 1
- 0
sitelib.lua View File

@@ -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">')


Loading…
Cancel
Save