diff --git a/blog.lua b/blog.lua
index a031985..b246258 100755
--- a/blog.lua
+++ b/blog.lua
@@ -38,6 +38,9 @@ for i = #ftab, 1, -1 do
end
f:write("")
end
+ if page.author or page.date then
+ f:write('
By '..(page.author or "")..'
'..(page.date or "")..'
\n')
+ end
if page.tags then
f:write("Tags: ")
for w in page.tags:gmatch("%S+") do
diff --git a/genpages.lua b/genpages.lua
index 2e4d955..e4edec1 100755
--- a/genpages.lua
+++ b/genpages.lua
@@ -44,8 +44,8 @@ for k,infile in pairs(mdfiles) do
f:write(""..(page.title or "").."\n")
f:write(sitelib.header)
f:write(page.html)
- if page.author and page.date then
- f:write('By '..(page.author or "")..'
'..(page.date or "")..'
\n')
+ if page.author or page.date then
+ f:write('By '..(page.author or "")..'
'..(page.date or "")..'
\n')
end
if page.tags then
f:write("Tags: ")