From f6eed6c3d405395585f110ad91ce94011ee7ce1d Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 29 Aug 2024 00:28:59 +0200 Subject: Output table with an index class Just put that into a template --- generate-index.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'generate-index.lua') diff --git a/generate-index.lua b/generate-index.lua index 6022c31..0b94821 100755 --- a/generate-index.lua +++ b/generate-index.lua @@ -54,7 +54,7 @@ for _, filename in pairs(pages) do end end table.sort(posts, function (lhs, rhs) return lhs.published > rhs.published end) -print("") +print[[
]] local year = nil for _, page in pairs(posts) do local date = parse(page.published) @@ -64,4 +64,4 @@ for _, page in pairs(posts) do end print(string.format([[
%s%s]], describe(date), page.filename, page.title)) end -print("
") +print"" -- cgit v1.1