Skip to content

Schedule blog posts by pubDate - #10

Merged
Waterdrips merged 1 commit into
masterfrom
scheduled-posts
Oct 17, 2026
Merged

Waterdrips merged 1 commit into
masterfrom
scheduled-posts

Conversation

@Waterdrips

Copy link
Copy Markdown
Member

Lets us queue posts ahead of time for a weekly cadence.

  • getPosts() excludes posts with a future pubDate in production builds (still visible in astro dev). This covers the blog index, home page, post pages, RSS and sitemap.
  • deploy.yml gains a schedule trigger: Saturdays ~07:17 UTC. GitHub may run it late; use Run workflow to publish sooner.
  • README documents the flow.

Verified with a local build using temporary past- and future-dated posts: only the past one was built, and the future one was absent from RSS and the sitemap.

Production builds now skip posts whose pubDate is in the future, and the
deploy workflow runs every Saturday so queued posts go live on their date.
@Waterdrips
Waterdrips merged commit c8cb079 into master Oct 17, 2026
1 check passed
@Waterdrips
Waterdrips deleted the scheduled-posts branch October 23, 2026 14:00
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