1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-25 02:36:26 +02:00

add category to new photo posts rake task

This commit is contained in:
Matthias Kretschmann 2014-04-06 14:32:07 +02:00
parent 7c5749b826
commit 0708b19c15

View File

@ -41,7 +41,7 @@ task :photo do
puts "Dude, file exists - skipping create"
else
File.open(path, "w") do |file|
file.puts YAML.dump({'layout' => 'photo', 'published' => false, 'title' => title, 'image' => 'REPLACEME.jpg', 'author' => 'Matthias Kretschmann'})
file.puts YAML.dump({'layout' => 'photo', 'published' => false, 'title' => title, 'image' => 'REPLACEME.jpg', 'author' => 'Matthias Kretschmann', 'category' => 'photos'})
file.puts "---"
end
end