Commit Graph

61 Commits

Author SHA1 Message Date
Kazuhiro MUSASHI b62f21c9de 東北復興マラソンの記事を追加 2023-01-01 10:29:29 +09:00
Kazuhiro MUSASHI 3c94cb3b80 仙台ハーフマラソンの記事を追加 2023-01-01 10:26:04 +09:00
Kazuhiro MUSASHI 4026ddbe80 執筆者データを作成 2023-01-01 10:21:24 +09:00
Kazuhiro MUSASHI e0858e935c `Blowfish`の設定 2023-01-01 10:21:24 +09:00
Kazuhiro MUSASHI 316defd561 `Blowfish`の初期設定 2023-01-01 10:21:24 +09:00
Kazuhiro MUSASHI 90f631ac67 [Blowfish](https://nunocoracao.github.io/blowfish/)の導入 2023-01-01 10:21:24 +09:00
Kazuhiro MUSASHI 6ab93a3d2d `hugo sever`用のタスクを追加
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..99233bd
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,3 @@
+#!/usr/bin/env rake
+
+Dir['tasks/**/*.rake'].each { |path| load path }
diff --git a/tasks/demo.rake b/tasks/demo.rake
new file mode 100755
index 0000000..d10863b
--- /dev/null
+++ b/tasks/demo.rake
@@ -0,0 +1,12 @@
+#!/usr/bin/env rake
+
+require 'socket'
+
+desc 'Generate the HTML demo pages including drafts'
+task :demo do
+  ip = Socket.getifaddrs.select{|x|
+    x.name == "ens160" and x.addr.ipv4?
+  }.first.addr.ip_address
+
+  sh "hugo server --buildDrafts -w --bind #{ip} -b #{ip} --disableFastRender"
+end
2023-01-01 10:21:24 +09:00
Kazuhiro MUSASHI f2a644a066 Git LFSを利用する 2023-01-01 10:21:24 +09:00
Kazuhiro MUSASHI 2b749aca8b Add .gitignore 2022-12-31 12:26:13 +09:00
Kazuhiro MUSASHI bed004d68a `readme.md`の追加 2022-12-30 17:13:58 +09:00
Kazuhiro MUSASHI 500a2aaefe initial commit 2022-12-30 17:11:39 +09:00