Skip to content

layout and listing in gleam - #171

Merged
alii merged 2 commits into
masterfrom
gleam-components
Sep 2, 2026
Merged

alii merged 2 commits into
masterfrom
gleam-components

Conversation

@alii

@alii alii commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Layout and PostListing are Gleam: site/layout.gleam and posts.listing. They were only used from Gleam pages, so layout.tsx, post-listing.tsx, layout_ffi.ts and the PostListing shim are deleted, and so is ui.ts, which nothing in TypeScript imports any more (site/ui.gleam was already the source).

The listing's "Aug 2026" date used Intl.DateTimeFormat('en-GB'), whose output depends on the ICU build: Node says "Sept", bun says "Sep". date.month_year is a twelve-entry table in Gleam that matches what Node, and so production, renders, and it is the same on the server and in the browser. The footer year comes from date.current_year, UTC.

Note stays TSX for now: three posts still use it, and it moves with them.

All 12 prerendered pages byte-identical to the pre-rewrite baseline, no server-only code in browser chunks, typecheck and lint clean.

@vercel

vercel Bot commented Sep 2, 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 Sep 2, 2026 8:57pm UTC

@alii
alii merged commit 5991da7 into master Sep 2, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — c602ba63 Deployed Sep 2, 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