Skip to content

Add option to build and serve posts with dates in the future#774

Open
ianmcook wants to merge 2 commits into
apache:mainfrom
ianmcook:future-posts
Open

Add option to build and serve posts with dates in the future#774
ianmcook wants to merge 2 commits into
apache:mainfrom
ianmcook:future-posts

Conversation

@ianmcook

@ianmcook ianmcook commented Apr 7, 2026

Copy link
Copy Markdown
Member

No description provided.

@ianmcook ianmcook requested a review from lidavidm April 7, 2026 03:53
@github-actions

github-actions Bot commented Apr 7, 2026

Copy link
Copy Markdown

Preview URL: https://ianmcook.github.io/arrow-site

If the preview URL doesn't work, you may forget to configure your fork repository for preview.
See https://github.com/apache/arrow-site/blob/main/README.md#forks how to configure.

@ianmcook ianmcook changed the title Add option to build posts with dates in the future Add option to build and serve posts with dates in the future Apr 7, 2026

@lidavidm lidavidm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason not to do this for a local server? Feels like it'd be easier to just always enable it

@ianmcook

ianmcook commented Apr 8, 2026

Copy link
Copy Markdown
Member Author

Hmm, good question. Someone might have a reason, I suppose, but I can't think of an obvious one.

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's enable --future by default.

@ianmcook

ianmcook commented Apr 8, 2026

Copy link
Copy Markdown
Member Author

Let's enable --future by default.

Done in a08e969

Comment thread README.md

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Comment thread Rakefile
Comment on lines +61 to +62
future = ENV["JEKYLL_FUTURE"]
command_line << "--future" if future

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can simplify this:

Suggested change
future = ENV["JEKYLL_FUTURE"]
command_line << "--future" if future
command_line << "--future" if ENV["JEKYLL_FUTURE"]

BTW, do we need this? If we need this, how about enable this only for preview?

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 9b963f13831..86236479f95 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -64,6 +64,9 @@ jobs:
           export JEKYLL_DESTINATION=../build
           export JEKYLL_ENV=production
           export JEKYLL_EXTRA_CONFIG=_extra_config.yml
+          if [ "${GITHUB_REPOSITORY}" != "apache/arrow-site" ]; then
+            export JEKYLL_FUTURE=1
+          fi
           bundle exec rake generate
       - name: Checkout asf-site
         uses: actions/checkout@v6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants