summaryrefslogtreecommitdiff
path: root/layouts/blog.lua
blob: 94dc6851ef6e993bbfc63e9261125256e72c9a8a (plain)
1
2
3
4
5
6
7
8
local base = require('layouts.base')

return function(html, page_tbl)
   local html = string.format(
      '<h1>%s</h1>\n<p class="centered">%s</p>\n\n%s',
      page_tbl.title, page_tbl.date, html)
   return base(html, page_tbl)
end