diff --git a/bin/autoblog b/bin/autoblog old mode 100644 new mode 100755 index e69de29b..8dd741fa --- a/bin/autoblog +++ b/bin/autoblog @@ -0,0 +1,7 @@ +#!/usr/bin/env ruby + +$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) + +require 'autoblog' + +AutoBlog.process(ARGV[0], ARGV[1]) \ No newline at end of file diff --git a/lib/autoblog/site.rb b/lib/autoblog/site.rb index e03207f8..cae52899 100644 --- a/lib/autoblog/site.rb +++ b/lib/autoblog/site.rb @@ -47,7 +47,7 @@ module AutoBlog def write_posts self.posts.each do |post| post.add_layout(self.layouts) - post.write + post.write(self.dest) end end end