motyl

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

commit 5f0c64a137ac5e61bdf850ad619d7470faa9d592
parent e9535961724b3374af710c78323b251db9a298f2
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 24 Apr 2017 19:09:33 +0200

Rename template: archives => categories

Diffstat:
Msrc/motyl.lua | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/motyl.lua b/src/motyl.lua @@ -72,6 +72,7 @@ data.site = loadYAML("motyl.conf") -- Loading templates local templates = { + categories = readFile("themes/templates/categories.mustache"), header = readFile("themes/templates/header.mustache"), atom = readFile("themes/templates/atom.mustache"), pages = readFile("themes/templates/page.mustache"), @@ -158,6 +159,6 @@ for category in pairs(data.site.categories) do data.site.posts = data.site.categories[category] lfs.mkdir("deploy/categories/" .. categoryURL) - writeFile("deploy/categories/" .. categoryURL .. "index.html", renderTemplate(templates.archives, data, templates)) + writeFile("deploy/categories/" .. categoryURL .. "index.html", renderTemplate(templates.categories, data, templates)) status("Rendering " .. categoryURL) end