From 77ffe60921f64b81c0559b5a874fb7ba6703a102 Mon Sep 17 00:00:00 2001 From: Ian Cook Date: Mon, 6 Apr 2026 23:51:11 -0400 Subject: [PATCH 1/2] Add future option --- README.md | 6 ++++++ Rakefile | 14 +++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 282f6ed4fbf0..e69f2e3c30f6 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,12 @@ site locally: bundle exec rake ``` +To include posts with future dates: + +```shell +JEKYLL_FUTURE=1 bundle exec rake +``` + ## Deployment ### apache/arrow-site diff --git a/Rakefile b/Rakefile index 6284c9efdd9d..90f1fd715a6a 100644 --- a/Rakefile +++ b/Rakefile @@ -39,11 +39,13 @@ end desc "Serve site locally" task :serve => webpacked_js do - sh("jekyll", - "serve", - "--incremental", - "--livereload", - "--host", ENV["HOST"] || "127.0.0.1") + command_line = ["jekyll", "serve"] + command_line << "--incremental" + command_line << "--livereload" + command_line << "--host=#{ENV["HOST"] || "127.0.0.1"}" + future = ENV["JEKYLL_FUTURE"] + command_line << "--future" if future + sh(*command_line) end task :default => :serve @@ -57,5 +59,7 @@ task :generate => webpacked_js do command_line << "--config=_config.yml,#{extra_config}" if extra_config destination = ENV["JEKYLL_DESTINATION"] command_line << "--destination=#{destination}" if destination + future = ENV["JEKYLL_FUTURE"] + command_line << "--future" if future sh(*command_line) end From a08e969eaa9a9dadb42c1241dcfcae0efa7aae47 Mon Sep 17 00:00:00 2001 From: Ian Cook Date: Tue, 7 Apr 2026 22:19:41 -0700 Subject: [PATCH 2/2] Always set --future when serving site locally --- Rakefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 90f1fd715a6a..272305d544b3 100644 --- a/Rakefile +++ b/Rakefile @@ -43,8 +43,7 @@ task :serve => webpacked_js do command_line << "--incremental" command_line << "--livereload" command_line << "--host=#{ENV["HOST"] || "127.0.0.1"}" - future = ENV["JEKYLL_FUTURE"] - command_line << "--future" if future + command_line << "--future" sh(*command_line) end