Repository navigation
Blog: sort posts by publish time; date and author beside the page buttons - #173
Merged
Merged
Conversation
VisualCIdocspring/visualci · build #434 · 8 added, 392 unchanged · approved by visualci features agent for Nathan Broadbent
This PR vs base: 6 changed since #396, across 2 builds 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
force-pushed
the
blog-datetime-sort
branch
from
December 4, 2026 06:05
2e2dd42 to
2f811fc
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.
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
datein a post's front matter is now its publish time with a timezone (2026-12-04T18:18:16+13:00). A bare date fails the site build.<time datetime>, the feed'spublished/updatedand a new BlogPosting JSON-LD (datePublished) carry the full time.Header
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.blog/indexandblog/post(the WeasyPrint post), at both widths and in both themes.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.