Skip to content

Blog: sort posts by publish time; date and author beside the page buttons - #173

Merged
ndbroadbent merged 1 commit into
mainfrom
blog-datetime-sort
Dec 4, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
blog-datetime-sort

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Nathan saw /blog/ list the WeasyPrint case study second: it and the starter kit share 2026-12-04, and the tie fell to the slug.

Sort

Header

  • The title has a full-width row. Under it, the date and author sit on the left, and View as Markdown and Copy page on the right.
  • On phones the row wraps, with the buttons below the date and author.
  • DocsPage is shared, so docs pages get the same header: the title on its own row, the buttons under it on the right.

Tests

  • src/__tests__/blog.test.ts: a bare date or a time with no timezone is rejected; sorting works across timezones with the slug as tiebreak; <time>, the feed and the JSON-LD carry the full time; the real posts list the WeasyPrint case study before the starter kit.
  • New screenshots: blog/index and blog/post (the WeasyPrint post), at both widths and in both themes.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@visualci-com

visualci-com Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #434 · 8 added, 392 unchanged · approved by visualci features agent for Nathan Broadbent

After the rebase: the 8 new blog screenshots I reviewed in build #410 (blog index with WeasyPrint first, and the post page).

This PR vs base: 6 changed since #396, across 2 builds

Snapshot Before After
screenshots/blog/index/1440-dark (added) –
screenshots/blog/index/1440-light (added) –
screenshots/blog/index/390-dark (added) –
screenshots/blog/index/390-light (added) –
screenshots/blog/post/1440-dark (added) –
screenshots/blog/post/1440-light (added) –
screenshots/blog/post/390-dark (added) –
screenshots/blog/post/390-light (added) –

docspring/visualci · journeys · build #428 · 30 unchanged · no changes

This PR vs base: nothing since #391, across 2 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

… date and author share a row with the page buttons under a full-width title
@ndbroadbent
ndbroadbent merged commit e019ae1 into main Dec 4, 2026
16 checks passed
@ndbroadbent
ndbroadbent deleted the blog-datetime-sort branch December 4, 2026 06:25
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