motyl

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

commit 7c30384f59d08ba8a5bdd40f6f94c94bd54e1646
parent 6551f492b7c06e1d1a6bed3561951df73c17bf3d
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri, 16 Mar 2018 14:58:54 +0100

Linting

Diffstat:
Msrc/motyl.rb | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/motyl.rb b/src/motyl.rb @@ -50,7 +50,7 @@ end def render(directory, templates, data) Dir.foreach(directory) do |file| - next if file == '.' or file == '..' + next if file == '.' || file == '..' extension = File.extname(file) if extension == '.md' @@ -72,7 +72,7 @@ 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