Skip to content

Hide Writing, Play and the feed until they have content - #25

Merged
jonreyna merged 1 commit into
mainfrom
content/hide-empty-sections
Nov 24, 2026
Merged

jonreyna merged 1 commit into
mainfrom
content/hide-empty-sections

Conversation

@jonreyna

Copy link
Copy Markdown
Owner

Problem

Before launch, the site showed its gaps:

  • "Nothing published yet." under both Writing and Play on the home page, and again on /writing.
  • Two of the four nav links (writing, play) led to nothing.
  • The footer and page head linked an empty feed.
  • The intro and page description said the site already holds writing.

Changes

  • site/lib/essays.dart (new): publishedEssays is the one rule (kind: essay, not draft or noindex, newest first). The essay lists, the Writing nav link, the feed links and the Writing page's indexing all follow it.
  • EssayList takes heading and id. As a section (<EssayList limit="3" heading="Writing" id="writing"/> on the home page), it draws its own h2 and § link, or nothing until an essay is published.
  • /writing keeps the plain list. Flagged essayIndex: true, it is noindex, and so out of the sitemap, until there's an essay.
  • Play leaves the nav and the home page until its first piece (Phase 6). A comment on _nav in j_layout.dart says how to bring it back.
  • Copy:
    • Home intro: "Next I'm learning how models are trained and served, from first principles, and I'll write it up here."
    • Home description: ends "most recently infrastructure for AI inference and AI agents" instead of "writes about AI infrastructure."
    • About: "Next I'm going deeper…"; "This site" now speaks of the essays as coming.
  • make verify fails if a page search engines can index:
    • shows "Nothing published yet.";
    • links to /writing or the feed while no essay is published;
    • links to a home-page section that doesn't exist (such as /#play).
  • site/DESIGN.md: a section shows only once it has something in it.

Verification

  • dart analyze: no issues. make site-test: all 70 tests pass, including a new table test for publishedEssays.
  • make site dist verify passes:
    • the nav is work · résumé on every page;
    • the home page has no Writing or Play section;
    • no feed links;
    • /writing is noindex, and the sitemap has 4 pages.
  • Round trip: with a temporary essay added, "writing" returned to the nav on every page. The home page's Writing section came back with its § link, the feed links returned, /writing was indexed and in the sitemap (6 pages), and verify passed. The test essay was then removed.
  • Negative tests: on broken copies of dist/, verify caught an empty section, a /writing link with no essays, and a /#play link with no Play section.
  • Visual check: screenshots of the home page (desktop and 375px phone) and About page in Brave.

🤖 Generated with Claude Code

The home page showed "Nothing published yet." under Writing and Play,
two of the four nav links led to nothing, the footer linked an empty
feed, and the copy said the site already held writing.

- lib/essays.dart: publishedEssays, the one rule (kind: essay, not
  draft or noindex, newest first) the essay lists, the Writing nav
  link, the feed links and the Writing page's indexing all follow.
- EssayList takes heading and id: as a section it draws its own h2
  and § link, or nothing until an essay is published. /writing keeps
  the plain list and, flagged essayIndex: true, is noindex (so out of
  the sitemap) until then.
- Play leaves the nav and the home page until its first piece; a
  comment in j_layout.dart says how to bring it back.
- The home intro and description, and the About page, say what's
  coming ("Next I'm learning ... and I'll write it up here").
- make verify fails if an indexable page shows "Nothing published
  yet.", links to /writing or the feed before there is an essay, or
  links to a home-page section that doesn't exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

@jonreyna
jonreyna merged commit 11e4de3 into main Nov 24, 2026
4 checks passed
@jonreyna
jonreyna deleted the content/hide-empty-sections branch November 24, 2026 05:22
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