|
82dffcdc73
|
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}"
```
|
2019-04-20 14:38:32 +08:00 |
|