From bcd90e907c7fd160e02a40fcaa06679c39da720e Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 15 Oct 2018 19:16:56 +1100 Subject: [PATCH] made it display authors or dates if one is available --- blog.lua | 3 +++ genpages.lua | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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: ")