Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 447 Bytes
require 'rubygems'
require 'rake'
require 'fileutils'
desc "Draft a new post"
task :new do
puts "What should we call this post for now?"
name = STDIN.gets.chomp
FileUtils.touch("drafts/#{name}.md")
open("drafts/#{name}.md", 'a') do |f|
f.puts "---"
f.puts "layout: post"
f.puts "title: \"DRAFT: #{name}\""
f.puts "---"
end
end
desc "Startup Jekyll"
task :start do
sh "jekyll --server"
end
task :default => :start