From e5d33d6fe6769bdf0357f73794a3e64ac6dcd468 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 16 Oct 2022 21:23:00 +0900 Subject: [PATCH 1/2] Modify `demo` task. --- tasks/demo.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 tasks/demo.rake diff --git a/tasks/demo.rake b/tasks/demo.rake old mode 100644 new mode 100755 index e0d2944..dd189af --- a/tasks/demo.rake +++ b/tasks/demo.rake @@ -2,5 +2,5 @@ desc 'Generate the HTML demo pages including drafts' 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 From 4a0d309c43405dcc6faf6a1e765c98181b004d69 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 16 Oct 2022 21:23:10 +0900 Subject: [PATCH 2/2] 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}"