motyl

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

commit 0db15aaea542ba2b841b757f880af5ffddb94e3c
parent 4186b3701c5376cd9829269e8b5184f8b88fc348
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 24 Apr 2017 10:48:54 +0200

Do not generate archives as site index anymore

Diffstat:
Msrc/motyl.lua | 10++++------
1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/motyl.lua b/src/motyl.lua @@ -133,12 +133,10 @@ render("pages") -- Index table.sort(data.site.posts, sortDates) -data.page.title = data.site.title -data.page.description = data.site.description -data.page.keywords = data.site.keywords - -writeFile("deploy/index.html", renderTemplate(templates.archives, data, templates)) -status("Rendering index.html") +data.page.title = "Archives" +lfs.mkdir("deploy/archives") +writeFile("deploy/archives/index.html", renderTemplate(templates.archives, data, templates)) +status("Rendering archives/") -- Feed for loop=1, 20 do