motyl

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

commit 835f689a3bef56e1cd395530b2581ca48663206f
parent f2dc87afe4917b41481be0d2509f35fe5a070993
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 18 Oct 2018 22:29:55 +0200

Formatting fixes

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

diff --git a/bin/motyl b/bin/motyl @@ -75,9 +75,8 @@ def render(directory, templates, data) status('Rendering ' + data['page']['url']) if directory == 'posts' - data['page']['datetime'] = DateTime.parse( - data['page']['date']).strftime('%Y-%m-%dT%XZ' - ) + data['page']['datetime'] = + DateTime.parse(data['page']['date']).strftime('%Y-%m-%dT%XZ') data['posts'].push(data['page']) @@ -87,10 +86,8 @@ def render(directory, templates, data) data['page']['categories'].each do |category| data['categories'][category] ||= [] data['categories'][category].push(data['page']) - data['page']['categoryDisplay'].push( - 'category' => category, - 'url' => data['site']['categoryMap'][category] - ) + data['page']['categoryDisplay'].push('category' => category, + 'url' => data['site']['categoryMap'][category]) end end