diff options
Diffstat (limited to 'site_root/index.lua')
-rw-r--r-- | site_root/index.lua | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/site_root/index.lua b/site_root/index.lua deleted file mode 100644 index c419830..0000000 --- a/site_root/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, -} |