require 'jekyll' task :default => [:buildsite] desc 'Build the site' task :buildsite do #def Jekyll::env # "production" #end # fuck this, the whole process won't work unless I figure out how to activate all plugins ###Jekyll::Commands::Build.process({}) ENV["JEKYLL_ENV"]="production" sh "bundle", "exec", "jekyll", "build" end desc 'Clean up built files' task :clean do puts 'Cleaning up _site...'.bold Jekyll::Commands::Clean.process({}) end