motyl

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

commit 7200f5cd487ff6d2ed1a07bf2553e2a88b7525ab
parent 4420b5645a22fb5785db4a953f121361709c7df5
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 28 Aug 2018 08:47:01 +0200

Wrap some lines longer than 80 characters

Diffstat:
Mbin/motyl | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bin/motyl b/bin/motyl @@ -83,7 +83,8 @@ def render(directory, templates, data) end FileUtils.mkdir_p('public/' + data['page']['url']) - File.write('public/' + data['page']['url'] + 'index.html', Mustache.render(templates[directory], data)) + File.write('public/' + data['page']['url'] + 'index.html', + Mustache.render(templates[directory], data)) data['page'] = {} end @@ -117,7 +118,8 @@ data['categories'].keys.each do |category| data['posts'] = data['categories'][category] FileUtils.mkdir_p('public/categories/' + category_url) - File.write('public/categories/' + category_url + 'index.html', Mustache.render(templates['categories'], data)) + File.write('public/categories/' + category_url + 'index.html', + Mustache.render(templates['categories'], data)) status('Rendering ' + category_url) end