We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ff8c9 commit 8f27e82Copy full SHA for 8f27e82
Rakefile
@@ -16,7 +16,7 @@ task :post do
16
end
17
18
# Usage: rake post_from url="https://martinfowler.com/bliki/UserStory.html"
19
-desc "post_from"
+desc "ex.) rake post_from url=https://martinfowler.com/bliki/UserStory.html"
20
task :post_from do
21
require 'open-uri'
22
require 'nokogiri'
@@ -32,7 +32,7 @@ task :post_from do
32
}.uniq.join(', ') + "]"
33
create_file_name = "#{t.strftime("%Y-%m-%d-")}#{title}.md"
34
35
- puts "Creating new post: #{create_file_name}"
+ puts "Creating new post: _posts/#{create_file_name}"
36
filename = File.join("_posts", create_file_name)
37
open(filename, 'w') do |post|
38
post.puts "---"
0 commit comments