summaryrefslogtreecommitdiff
path: root/data/index.lua
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-01-12 17:29:28 -0600
committersanine <sanine.not@pm.me>2023-01-12 17:29:28 -0600
commitf9f8a3206298363059601f6c389584426962e5e4 (patch)
treeb0ed2fd393a1064c01aabdce548e9f84215a8c57 /data/index.lua
parent655cd79991ec9204afb9f5acf52495c13af14d25 (diff)
wrong branch :c
Diffstat (limited to 'data/index.lua')
-rw-r--r--data/index.lua30
1 files changed, 0 insertions, 30 deletions
diff --git a/data/index.lua b/data/index.lua
deleted file mode 100644
index c419830..0000000
--- a/data/index.lua
+++ /dev/null
@@ -1,30 +0,0 @@
-local tk = require 'toolkit'
-
-function get_blog_links()
- local links = '<ul>\n'
- local pages = tk.pages('blog/')
- table.sort(pages, function(a, b) return a.date > b.date end)
- for _, page in pairs(pages) do
- links = links ..
- string.format('<li><a href="%s">[%s] %s</a></li>\n', page.href, page.date, page.title)
- end
- return links..'</ul>'
-end
-
-
-local md = string.format([[
-home
-====
-
-welcome to sanine.net!
-
-%s
-
-[subscribe via rss](/rss.xml)
-]], get_blog_links())
-
-return {
- title='home',
- layout='base',
- markdown=md,
-}