motyl

Opinionated blog-aware static site generator written in Ruby
Log | Files | Refs | README | LICENSE

commit 2ea3534d3923031952bffb74402d5ccfcf04f21a
parent 7f17b29e0cf71eb6474d71673557616beafae60e
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu,  3 Mar 2016 23:24:48 +0100

Fixing canonical URL for index and categories

Diffstat:
Mmotyl.lua | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/motyl.lua b/motyl.lua @@ -118,6 +118,7 @@ table.sort(data.site.posts, sortDates) -- Index data.page.title = data.site.title +data.page.url = nil output = lustache:render(templates.archives, data, templates) writeFile(data.site.destination .. "index.html", output) status("Rendering index.html") @@ -131,6 +132,7 @@ for category in pairs(data.site.categories) do table.sort(data.site.categories[category], sortDates) data.page.title = category + data.page.url = categoryURL data.site.posts = data.site.categories[category] output = lustache:render(templates.archives, data, templates)