From 4a0d309c43405dcc6faf6a1e765c98181b004d69 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 16 Oct 2022 21:23:10 +0900 Subject: [PATCH] Modify `new` task. --- tasks/new.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/new.rake b/tasks/new.rake index 4fd0f84..13f4a1e 100755 --- a/tasks/new.rake +++ b/tasks/new.rake @@ -6,7 +6,7 @@ task :new do day = Time.now title = ARGV.last.downcase - postname = "#{day.year}-#{day.strftime("%m")}-#{day.strftime("%d")}-#{title}.md" + postname = "posts/#{day.year}/#{day.year}-#{day.strftime("%m")}-#{day.strftime("%d")}-#{title}.md" # generate the post md file: sh "hugo new #{postname}"