From 82dffcdc730a5f28f5d02757bcb2403c76726600 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 20 Apr 2019 14:26:46 +0800 Subject: [PATCH] Create the new artcle markdown to be generated under content directory ``` --- a/tasks/new.rake +++ b/tasks/new.rake @@ -6,7 +6,7 @@ task :new do day = Time.now title = ARGV.last.downcase - postname = "post/#{day.year}-#{day.strftime("%m")}-#{day.strftime("%d")}-#{title}.md" + postname = "#{day.year}-#{day.strftime("%m")}-#{day.strftime("%d")}-#{title}.md" # generate the post md file: sh "hugo new #{postname}" ``` --- tasks/new.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/new.rake b/tasks/new.rake index 15d4ed1..4fd0f84 100755 --- a/tasks/new.rake +++ b/tasks/new.rake @@ -6,7 +6,7 @@ task :new do day = Time.now title = ARGV.last.downcase - postname = "post/#{day.year}-#{day.strftime("%m")}-#{day.strftime("%d")}-#{title}.md" + postname = "#{day.year}-#{day.strftime("%m")}-#{day.strftime("%d")}-#{title}.md" # generate the post md file: sh "hugo new #{postname}"