Repository navigation
feat(ghost): add the Readerly Ghost theme, demo harness and static export - #7
Merged
Merged
Conversation
…screenshots against Ghost
… the ghost CI job
… every parity exception
…ers and harden the harness
…ts to genres and drop the pull quote's side rule
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.
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.5or#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.shbuilds the zip, andtools/publish-ghost-demo.shdeploys the demo when an operator runs it.tools/build-tokens.mjsalso generates the Ghost stylesheet, script, fonts and images.tools/ghost-locales.mjsgeneratesghost/locales/en.json. CI gets aghostjob.Scope
https://readerly-ghost-demo.pages.dev.ghost/README.md.Tradeoffs
routes.yaml. The theme can read tags on the server, and they need no setup beyond the theme.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) andcheck-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 theghostjob, 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 inparity-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.