Skip to content

feat(ghost): add the Readerly Ghost theme, demo harness and static export - #7

Merged
phoduke merged 14 commits into
mainfrom
feat/ghost
Nov 12, 2026
Merged

phoduke merged 14 commits into
mainfrom
feat/ghost

Conversation

@phoduke

@phoduke phoduke commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Why

The goal is backlinks to https://www.listofbooks.net/ from every site that installs Readerly. The Ghost Marketplace lists free themes and links to each theme's demo, so this adds a marketplace-grade Ghost port and a demo we can host.

Ghost has no custom fields. A book fact is an internal tag such as #by:Mira Hollis, #rating:4.5 or #read, and the theme reads the value after the colon. Reviews are posts. Books on the reading log without a review are pages, so they stay out of the home page, RSS and newsletters.

What changed

  • ghost/: the theme. It covers the home page, reviews, pages, tag and author archives, the 404 page, and two page templates, "Reading log" and "Author site". It also adds Ghost search, a members signup form, comments and Review JSON-LD. The footer has "Published with Ghost" and the List of Books credit.
  • tools/ghost-dev/: Ghost 6 in Docker, a rerunnable demo loader (Marginalia), GScan, markup parity, browser checks, side-by-side screenshots and a static export for Cloudflare Pages. tools/build-ghost-zip.sh builds the zip, and tools/publish-ghost-demo.sh deploys the demo when an operator runs it.
  • tools/build-tokens.mjs also generates the Ghost stylesheet, script, fonts and images. tools/ghost-locales.mjs generates ghost/locales/en.json. CI gets a ghost job.

Scope

  • This PR does not deploy the demo, choose its domain or submit the theme to Ghost. The demo URL defaults to https://readerly-ghost-demo.pages.dev.
  • The verdict, pull quote, praise and events blocks are HTML-card snippets, documented in ghost/README.md.

Tradeoffs

  • Internal tags rather than content parsing or routes.yaml. The theme can read tags on the server, and they need no setup beyond the theme.
  • Reading-log statistics, shelf counts and progress percentages come from assets/js/books.js, because Handlebars has no arithmetic. Without JavaScript, the statistics stay hidden.

Blast Radius

The only shared files are tools/build-tokens.mjs (Ghost outputs are added), check-parity.mjs (two functions are now exported, defaults unchanged) and check-pages.cjs (two optional allow-lists). The WordPress and Jekyll outputs are byte-identical.

Verification

  • heavy act pull_request -W .github/workflows/ci.yml: all six jobs pass. In the ghost job, GScan for Ghost 6 on the zip reports zero errors and zero warnings, markup parity holds on all seven design pages (each exception has a reason in parity-exceptions.json), and 13 pages pass the browser checks at 1280 and 390 px in Paper and Lamplight.
  • ghost-dev.sh export: 46 pages make no requests to the Ghost origin and none fail, and search finds "Salt". Signup forms change to the demo confirmation.
  • In a browser: header search opens Ghost search, and the signup form gets Ghost's success or error state.

@phoduke
phoduke merged commit 78a079a into main Nov 12, 2026
7 checks passed
@phoduke
phoduke deleted the feat/ghost branch November 12, 2026 08:34
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