Frame RSS/email feed items with a lead-in and book CTA#1910
Merged
Conversation
Kit renders the raw post body straight into subscriber email, so it opened mid-thought with no indication it was a new post on ben.balter.com, and the on-site <BookCta> (Astro/Tailwind-only) never reached the feed. Wrap each feed item's content with a plain, inline-styled framing line up top and a relation-aware book callout at the bottom, mirroring BookCta's copy. Applies to RSS readers and email alike. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
benbalter
force-pushed
the
feed-email-framing
branch
from
July 14, 2026 17:43
311cbc7 to
8e705f6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first Kit email blast (for Work loudly) worked, but the reader experience was rough: Kit renders the raw post body straight into subscriber email, so it opened mid-thought with no indication it was a new post on ben.balter.com, and the on-site
<BookCta>(Astro/Tailwind/SVG-only) never reaches the feed — no book push at the end.This wraps every feed item's content with two plain, email-safe pieces:
<table>callout (no Tailwind/SVG/webp, so it survives email clients) mirroringBookCta's relation-aware copy —adapted/cut/inspiredeach get their own line, with a generic "it's becoming a book" fallback. Driven per-post bypost.data.bookRelation, so it stays dynamic.Applies to RSS readers and email alike.
Notes
BookCta. Deliberately not sharing a source of truth for a one-week pre-launch window — a code comment flags that these two strings need the same buy-now flip asBookCtaat launch.Testing
npm run test:vitest src/__tests__/pages/feed.xml.test.ts— 9/9 pass (updated to assert lead-in → body → CTA ordering)astro check🤖 Generated with Claude Code