mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
1. Moved _plugins into themes/classic/_plugins
I think it's probably better to ship plugins with themes to make it easier to update them. 2. Improved 'install' rake task and made nicer output
This commit is contained in:
10
Rakefile
10
Rakefile
@ -25,9 +25,13 @@ task :install, :theme do |t, args|
|
||||
# copy theme into working Jekyll directories
|
||||
theme = args.theme || 'classic'
|
||||
puts "## Copying "+theme+" theme to Jekyll paths"
|
||||
system "cp -R themes/"+theme+"/source source"
|
||||
system "cp -R themes/"+theme+"/sass sass"
|
||||
# system "cp -R themes/"+theme+"/_plugins/ _plugins/"
|
||||
system "mkdir -p #{source}; cp -R themes/"+theme+"/source/ #{source}/"
|
||||
system "mkdir -p sass; cp -R themes/"+theme+"/sass/ sass/"
|
||||
system "mkdir -p _plugins; cp -R themes/"+theme+"/_plugins/ _plugins/"
|
||||
system "mkdir -p #{source}/_posts";
|
||||
puts "## Layouts, images, and javascritps from the #{theme} theme have been installed into ./#{source}"
|
||||
puts "## Sass stylesheet sources from the #{theme} theme have been installed into ./sass"
|
||||
puts "## Plugins from the #{theme} theme have been installed into ./_plugins"
|
||||
end
|
||||
|
||||
#######################
|
||||
|
||||
Reference in New Issue
Block a user