Skip to content

feat decides what the homepage shows - #34

Merged
37ng merged 4 commits into
mainfrom
feat/homepage-feat-flag
Sep 5, 2026
Merged

37ng merged 4 commits into
mainfrom
feat/homepage-feat-flag

Conversation

@37ng

@37ng 37ng commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Follows up e603214, which added feat to the schema.

  • feat was required. z.boolean() with no default fails any post that omits it, so the build stopped on bitcoin. Now .default(false).
  • index.astro filters on it. The fan and the stages are built from the featured posts only. A post with feat: false keeps its own page and URL; it just does not appear on the homepage.
  • prologue and bitcoin are marked feat: true. 一锅肉 is not, so it drops off the homepage — it is the post with no art and an empty description.
  • LANDING_STAGE is untouched.

Verified: homepage shows two cards, /一锅肉 still renders.

🤖 Generated with Claude Code

37ng and others added 4 commits September 5, 2026 11:34
feat was required, so every post without it failed the schema and the
build stopped. It now defaults to false.

index.astro builds the fan and the stages from the featured posts only,
so an unfinished post can sit at its own URL without appearing on the
homepage. The landing stage is unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
PR #31 moved this route to the pages root, but a later merge brought the
old copy back. It still read post.data.heroImage, which no longer exists
after the rename to stageImage, so the build failed. It also carried a
stray three/tsl import.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@37ng
37ng merged commit fae482f into main Sep 5, 2026
1 check passed
@37ng
37ng deleted the feat/homepage-feat-flag branch September 5, 2026 20:07
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