Skip to content

feat(blog): add a blog and the first post - #130

Merged
jaspermayone merged 4 commits into
mainfrom
add-blog
Nov 29, 2026
Merged

jaspermayone merged 4 commits into
mainfrom
add-blog

Conversation

@jaspermayone

Copy link
Copy Markdown
Owner

What this adds

A small blog at /blog, and the first post, /blog/find-the-link.

  • posts array in src/lib/defs.ts, with a BlogPost type. This follows the single source of truth rule.
  • /blog index: date, title and description for each post.
  • PostLayout, Figure and ResultBlock components in src/components/blog/.
  • The post has a flow diagram as inline SVG. It follows the light and dark themes, and it has a tall layout for a narrow screen.
  • OG images for the index and the post, through the existing generateOGImage.
  • Blog posts are in the Atom feed (/feed.xml) with their real dates.
  • Blog is in the main nav and in slashPages.
  • AGENTS.md has a section on how to add a post.

There are no new dependencies. A post is a TSX page, the same as the other pages on the site.

Do not merge before launch

This is a draft because:

  1. The post text is a first draft in your voice. Edit it in src/app/blog/find-the-link/page.tsx.
  2. The post links to github.com/jaspermayone/find-the-link, which is private until launch day.
  3. The post date is 2026-11-29. Change date in defs.ts to the launch day.

Things to decide

  • The nav now has 8 items plus /more. At a 390 px width, /more goes to a second line. If you do not want that, set showInNav: false on one item.
  • The post does not name the architecture account. It names Bruno Volpato because the result credits him.

Checks

  • bunx --bun next build passes. /blog, /blog/find-the-link and both OG images are static.
  • ESLint has no errors on the new files. Prettier makes no changes.
  • I looked at desktop, mobile (390 px) and dark screenshots of the post.
  • /feed.xml contains the post.

🤖 Generated with Claude Code

https://claude.ai/code/session_014fqP2nx53QNhiJiqzmidQM

@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Nov 29, 2026 6:51pm UTC

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

React Doctor found 4 new issues in 2 files · 4 warnings · score 85 / 100 (Great) · 0 fixed · vs main

4 warnings

src/app/blog/page.tsx

  • ⚠️ L62 Plain anchor reloads internal Next.js links nextjs-no-a-element
  • ⚠️ L66 Plain anchor reloads internal Next.js links nextjs-no-a-element

src/components/blog/PostLayout.tsx

  • ⚠️ L98 Plain anchor reloads internal Next.js links nextjs-no-a-element
  • ⚠️ L102 Plain anchor reloads internal Next.js links nextjs-no-a-element

Reviewed by React Doctor for commit bd977c0. See inline comments for fixes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014fqP2nx53QNhiJiqzmidQM
The page layout draws the title in letter tiles. A post title is a
sentence, and it went off the top and bottom of the image.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014fqP2nx53QNhiJiqzmidQM
Comment thread src/app/blog/page.tsx
<p className="text-lg text-zinc-600 dark:text-zinc-300">
Short posts about things I build, break, and figure out. There
is a{" "}
<a href="/blog/feed.xml" className="lnk">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React Doctor · react-doctor/nextjs-no-a-element (warning)

Plain reloads the whole page for internal links, so Next.js loses client-side navigation and prefetching.

Fix → import Link from 'next/link' for client-side navigation, prefetching, and preserved scroll position

Docs

Comment thread src/app/blog/page.tsx
feed
</a>{" "}
too (or{" "}
<a href="/blog/rss.xml" className="lnk">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React Doctor · react-doctor/nextjs-no-a-element (warning)

Plain reloads the whole page for internal links, so Next.js loses client-side navigation and prefetching.

Fix → import Link from 'next/link' for client-side navigation, prefetching, and preserved scroll position

Docs

All posts
</Link>{" "}
·{" "}
<a href="/blog/feed.xml" className="lnk">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React Doctor · react-doctor/nextjs-no-a-element (warning)

Plain reloads the whole page for internal links, so Next.js loses client-side navigation and prefetching.

Fix → import Link from 'next/link' for client-side navigation, prefetching, and preserved scroll position

Docs

Feed
</a>{" "}
·{" "}
<a href="/blog/rss.xml" className="lnk">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React Doctor · react-doctor/nextjs-no-a-element (warning)

Plain reloads the whole page for internal links, so Next.js loses client-side navigation and prefetching.

Fix → import Link from 'next/link' for client-side navigation, prefetching, and preserved scroll position

Docs

@jaspermayone
jaspermayone marked this pull request as ready for review November 29, 2026 18:53
@jaspermayone
jaspermayone merged commit de7f13e into main Nov 29, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — bd977c05 Deployed Nov 29, 2026 by vercel[bot]
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