Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.447 kb
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
Jump to Line
Something went wrong with that request. Please try again.