lib/zine/cli.rb in zine-0.1.0 vs lib/zine/cli.rb in zine-0.2.0

- old
+ new

@@ -36,10 +36,11 @@ option_dir = @site.options['directories'] Zine::CLI.source_root option_dir['templates'] @date = DateTime.now @name = name file = "#{@date.strftime('%Y-%m-%d')}-#{Zine::Page.slug(name)}.md" - template 'new_post.erb', + new_post_name = @site.options['templates']['new_post'] + template new_post_name, File.join(Dir.pwd, option_dir['posts'], file) end desc 'site', 'Create the skeleton of a new site (overwriting files)' def site