diff --git a/README.md b/README.md index 282f6ed4fbf..e69f2e3c30f 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 6284c9efdd9..272305d544b 100644 --- a/Rakefile +++ b/Rakefile @@ -39,11 +39,12 @@ 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"}" + command_line << "--future" + sh(*command_line) end task :default => :serve @@ -57,5 +58,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