motyl

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

commit feb130d8cdef6f5a9ae364d27c3512337234f4ec
parent 0ffc2022be731dd6bd11ca5102712ffb72264cd7
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu,  3 Mar 2016 23:22:40 +0100

Archives page is now rendered as index, it's an opinionated software after all

Diffstat:
Mmotyl.lua | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/motyl.lua b/motyl.lua @@ -7,7 +7,7 @@ # http://www.cambus.net/motyl/ # # # # Created: 2016-02-16 # -# Last Updated: 2016-02-25 # +# Last Updated: 2016-03-03 # # # # Motyl is released under the BSD 3-Clause license. # # See LICENSE file for details. # @@ -116,12 +116,11 @@ render("pages") table.sort(data.site.posts, sortDates) --- Archives -data.page.title = "Archives" -lfs.mkdir(data.site.destination .. "archives") +-- Index +data.page.title = data.site.title output = lustache:render(templates.archives, data, templates) -writeFile(data.site.destination .. "archives/index.html", output) -status("Rendering archives/") +writeFile(data.site.destination .. "index.html", output) +status("Rendering index.html") -- Categories lfs.mkdir(data.site.destination .. "categories")