Repository navigation
feat(website): list each post's picture in the blog RSS feed - #1296
Merged
Merged
Conversation
Posts get an optional `image` frontmatter field, defaulting to the first Markdown image or <img> in the post. The feed, now built in src/lib/blog-rss.ts with a spec, lists it as Media RSS (`<media:content medium="image">`), so readers and syncs such as liveloveapp.com's "Writing and talks" have a picture of the work instead of the title-card og:image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Why
threadplane.ai's OG images are title cards, so anything that shows a post's image beside its title (liveloveapp.com's "Writing and talks" section) prints the title twice. The feed now lists a picture of the work instead.
What changed
src/lib/blog-rss.ts(buildBlogRss), out of the route, with a spec. Its existing output is unchanged.postImage(post): frontmatterimage(new, optional, onPostFrontmatter), else the post's first Markdown image or<img>, whichever comes first.<media:content url="…" medium="image" type="…" />, with the URL made absolute andxmlns:mediaon<rss>. Posts without one list nothing.Built from the real posts, 6 items get an image: the three
/blog/diagrams/*.svgposts, the two human-in-the-loop posts (first screenshot) and the AG-UI fullstack post (hero.png). No post content changed. Threadplane 0.3.0 stays without one until there's a demo of the activity slot to screenshot.Validation
src/lib/blog-rss.spec.ts(new) andsrc/lib/blog.spec.tsnx run website:testandnx run website:lintpass🤖 Generated with Claude Code