summaryrefslogtreecommitdiff
path: root/generate-index.lua
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-08-29 00:28:59 +0200
committerAki <please@ignore.pl>2024-08-29 00:28:59 +0200
commitf6eed6c3d405395585f110ad91ce94011ee7ce1d (patch)
treed62162945e32350870d8d7951eda7794266a0841 /generate-index.lua
parent23d6b34917de71a2c54aff0e85f3a24a59cec69b (diff)
downloadhuh-f6eed6c3d405395585f110ad91ce94011ee7ce1d.zip
huh-f6eed6c3d405395585f110ad91ce94011ee7ce1d.tar.gz
huh-f6eed6c3d405395585f110ad91ce94011ee7ce1d.tar.bz2
Output table with an index class
Just put that into a template
Diffstat (limited to 'generate-index.lua')
-rwxr-xr-xgenerate-index.lua4
1 files changed, 2 insertions, 2 deletions
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("<table>")
+print[[<table class="index">]]
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([[<tr><td>%s<td class="sep">•<td><a href="%s">%s</a>]], describe(date), page.filename, page.title))
end
-print("</table>")
+print"</table>"