mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 01:46:51 +01:00
add category to new photo posts rake task
This commit is contained in:
parent
7c5749b826
commit
0708b19c15
2
Rakefile
2
Rakefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user