Merge pull request 'Rakeタスクの修正' (#14) from modify-tasks into master
Reviewed-on: #14
This commit is contained in:
commit
b576b01873
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
desc 'Generate the HTML demo pages including drafts'
|
desc 'Generate the HTML demo pages including drafts'
|
||||||
task :demo do
|
task :demo do
|
||||||
sh 'hugo server --buildDrafts -w'
|
sh 'hugo server --buildDrafts -w --bind 192.168.10.101 -b 192.168.10.101 --disableFastRender'
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,7 +6,7 @@ task :new do
|
||||||
day = Time.now
|
day = Time.now
|
||||||
title = ARGV.last.downcase
|
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:
|
# generate the post md file:
|
||||||
sh "hugo new #{postname}"
|
sh "hugo new #{postname}"
|
||||||
|
|
Loading…
Reference in New Issue