Modify `new` task.

This commit is contained in:
Kazuhiro MUSASHI 2022-10-16 21:23:10 +09:00
parent e5d33d6fe6
commit 4a0d309c43
1 changed files with 1 additions and 1 deletions

View File

@ -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}"