made it display authors or dates if one is available
This commit is contained in:
parent
63ab3b285f
commit
bcd90e907c
3
blog.lua
3
blog.lua
@ -38,6 +38,9 @@ for i = #ftab, 1, -1 do
|
|||||||
end
|
end
|
||||||
f:write("</div>")
|
f:write("</div>")
|
||||||
end
|
end
|
||||||
|
if page.author or page.date then
|
||||||
|
f:write('<h4><div class="wrapper"><div class="left-column">By '..(page.author or "")..'</div><div class="right-column">'..(page.date or "")..'</div></div></h4>\n')
|
||||||
|
end
|
||||||
if page.tags then
|
if page.tags then
|
||||||
f:write("<h4>Tags: ")
|
f:write("<h4>Tags: ")
|
||||||
for w in page.tags:gmatch("%S+") do
|
for w in page.tags:gmatch("%S+") do
|
||||||
|
@ -44,8 +44,8 @@ for k,infile in pairs(mdfiles) do
|
|||||||
f:write("<html><head><title>"..(page.title or "").."</title>\n")
|
f:write("<html><head><title>"..(page.title or "").."</title>\n")
|
||||||
f:write(sitelib.header)
|
f:write(sitelib.header)
|
||||||
f:write(page.html)
|
f:write(page.html)
|
||||||
if page.author and page.date then
|
if page.author or page.date then
|
||||||
f:write('<h4><div class="wrapper"><div class="left-column">By '..(page.author or "")..'</div><div class="right-column">'..(page.date or "")..'</div></div></h3>\n')
|
f:write('<h4><div class="wrapper"><div class="left-column">By '..(page.author or "")..'</div><div class="right-column">'..(page.date or "")..'</div></div></h4>\n')
|
||||||
end
|
end
|
||||||
if page.tags then
|
if page.tags then
|
||||||
f:write("<h4>Tags: ")
|
f:write("<h4>Tags: ")
|
||||||
|
Loading…
Reference in New Issue
Block a user