commit 1d25ce25dde4d7c4b3af765a4da0c4f1c2a88d02
parent 2ea3534d3923031952bffb74402d5ccfcf04f21a
Author: Frederic Cambus <fred@statdns.com>
Date: Thu, 3 Mar 2016 23:25:44 +0100
Injecting description and keywords from config file when generating index page
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/motyl.lua b/motyl.lua
@@ -118,6 +118,8 @@ table.sort(data.site.posts, sortDates)
-- Index
data.page.title = data.site.title
+data.page.description = data.site.description
+data.page.keywords = data.site.keywords
data.page.url = nil
output = lustache:render(templates.archives, data, templates)
writeFile(data.site.destination .. "index.html", output)