Skip to content

Hide future posts from lists and add Q1 2026 post#30

Open
si wants to merge 4 commits intomainfrom
hide-future-posts-4199223611821539083
Open

Hide future posts from lists and add Q1 2026 post#30
si wants to merge 4 commits intomainfrom
hide-future-posts-4199223611821539083

Conversation

@si
Copy link
Owner

@si si commented Feb 11, 2026

This change updates the post data logic to filter out future posts from collections (like recent posts, archives, feeds) so they are not publicly listed before their date, but still allows the individual pages to be generated and accessible via direct link. It also adds a new blog post for Q1 2026 as requested.


PR created automatically by Jules for task 4199223611821539083 started by @si

…Add Q1 2026 post

- Modify `posts/posts.11tydata.js` to exclude posts with future dates (or scheduled dates) from collections, while keeping their pages generated.
- Add `posts/blog/2026/q1-2026.md` with content for Q1 2026, dated 2026-04-01.

Co-authored-by: si <18108+si@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 11, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
11ty 42942fe Feb 11 2026, 08:25 AM

@netlify
Copy link

netlify bot commented Feb 11, 2026

Deploy Preview for sijobling ready!

Name Link
🔨 Latest commit 42942fe
🔍 Latest deploy log https://app.netlify.com/projects/sijobling/deploys/698c3ce4fe8e3d000882d84c
😎 Deploy Preview https://deploy-preview-30--sijobling.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Modify `_data/isdevelopment.js` to check for `process` existence before accessing `process.argv`, preventing ReferenceError in non-Node environments (like Cloudflare Workers).
- Update `posts/posts.11tydata.js` to robustly convert `date` and `scheduled` to Date objects before comparison, and handle undefined values gracefully.

Co-authored-by: si <18108+si@users.noreply.github.com>
@netlify
Copy link

netlify bot commented Feb 11, 2026

Deploy Preview for si-jobling ready!

Name Link
🔨 Latest commit 42942fe
🔍 Latest deploy log https://app.netlify.com/projects/si-jobling/deploys/698c3ce421dfe90008da32a4
😎 Deploy Preview https://deploy-preview-30--si-jobling.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

google-labs-jules bot and others added 2 commits February 11, 2026 08:16
- Modify `_data/isdevelopment.js` to use try-catch and check for existence of `process`, `process.argv`, and `Array.isArray(process.argv)` to prevent crashes in non-standard environments (like Cloudflare Workers).
- Update `posts/posts.11tydata.js` to guard against missing `data` or invalid date values in `eleventyComputed` functions, and ensure `scheduled` date handling is safe.

Co-authored-by: si <18108+si@users.noreply.github.com>
… issues

- Inline the logic from `_data/isdevelopment.js` directly into `posts/posts.11tydata.js` to remove the file dependency.
- This ensures that `posts/posts.11tydata.js` is self-contained and avoids potential module resolution or bundling issues in CI environments (like Cloudflare Workers builds).
- Maintain robustness checks for `process` and date handling.

Co-authored-by: si <18108+si@users.noreply.github.com>
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.

1 participant