mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-12-25 08:58:49 -05:00
Updated path to plugins.
This commit is contained in:
parent
f81bdbc1a8
commit
922472517f
2
Rakefile
2
Rakefile
@ -59,7 +59,7 @@ end
|
|||||||
# usage rake post[my-new-post] or rake post['my new post'] or rake post (defaults to "new-post")
|
# usage rake post[my-new-post] or rake post['my new post'] or rake post (defaults to "new-post")
|
||||||
desc "Begin a new post in #{source_dir}/#{posts_dir}"
|
desc "Begin a new post in #{source_dir}/#{posts_dir}"
|
||||||
task :post, :filename do |t, args|
|
task :post, :filename do |t, args|
|
||||||
require './_plugins/titlecase.rb'
|
require './plugins/titlecase.rb'
|
||||||
args.with_defaults(:filename => 'new-post')
|
args.with_defaults(:filename => 'new-post')
|
||||||
open("#{source_dir}/_posts/#{Time.now.strftime('%Y-%m-%d')}-#{args.filename.downcase.gsub(/[ _]/, '-')}.#{post_format}", 'w') do |post|
|
open("#{source_dir}/_posts/#{Time.now.strftime('%Y-%m-%d')}-#{args.filename.downcase.gsub(/[ _]/, '-')}.#{post_format}", 'w') do |post|
|
||||||
system "mkdir -p #{source_dir}/#{posts_dir}";
|
system "mkdir -p #{source_dir}/#{posts_dir}";
|
||||||
|
Loading…
Reference in New Issue
Block a user