Skip to content

feat(jekyll): add the Readerly Jekyll theme, starter and demo - #4

Merged
phoduke merged 13 commits into
mainfrom
feat/jekyll-theme
Nov 12, 2026
Merged

phoduke merged 13 commits into
mainfrom
feat/jekyll-theme

Conversation

@phoduke

@phoduke phoduke commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Why

The goal is to earn referring-domain backlinks to https://www.listofbooks.net/ by publishing a free, well-made book theme in theme directories. Every site that installs it keeps one footer credit, "Theme by List of Books". The WordPress version is done. This PR adds the Jekyll port for a jekyllthemes.io listing and GitHub Pages users.

What changes

  • design/ is the single source. Fonts move to design/assets/fonts. tools/build-tokens.mjs now also writes design/assets/css/fonts.css, the font faces in wordpress/theme.json, the WordPress font copies, and every Jekyll asset (readerly.css, theme.js, fonts, images, demo covers). --check covers them all. The design pages load the bundled fonts instead of Google Fonts, and the demo-bar rules move to design/assets/css/demo.css.
  • WordPress is unchanged. git diff origin/main -- wordpress is empty. theme.json comes out byte-identical now that its font faces are generated.
  • jekyll/theme is the theme. Its layouts print the design pages' markup, and its stylesheet is design/assets/css/style.css verbatim, with no Sass. A review is a post with flat book keys, and _data/reading_log.yml uses the same keys. The home, author and reading-log layouts are ordered lists of section includes, and a page's sections: overrides the list. The credit is _includes/shell/credit.html. A site removes it by adding an empty file at that path.
  • jekyll/starter is the template repository for new Pages sites. jekyll/demo is Marginalia, the design pages' blog. jekyll/fixtures holds bare, minima (jekyll new output with the theme line swapped) and sparse (one post per missing field, under baseurl: /sub).
  • tools/jekyll-dev builds every site on the github-pages 232 gem set (Jekyll 3.10, --safe) and on Jekyll 4.4. check-builds.mjs checks the output. tools/wp-dev/check-pages.cjs now takes a page-map file, so one checker serves both ports. A new jekyll CI job runs everything through Docker, the same way php-lint does.
  • tools/publish-jekyll.sh splits jekyll/theme and jekyll/starter into their mirror repositories. I have not run it.

Verification

  • node tools/build-tokens.mjs --check passes. A browser load of the design pages makes no request to any other origin.
  • Every build on both engines prints nothing: demo, starter, starter with its example draft, bare, minima and sparse. Each site's HTML is equal on both engines after whitespace normalisation.
  • Every internal link and asset resolves under the baseurl /sub.
  • Markup parity with all seven design pages passes. The 6 allowed differences are in tools/jekyll-dev/parity-exceptions.json, each with its reason.
  • Browser checks pass on 37 pages across 5 sites, at 1280 px and 390 px, in Paper and Lamplight. Each page has no overflow, broken image, console error or third-party request. Each has one h1, no empty heading or section, and exactly one credit link.
  • I compared design and demo screenshots side by side for every page, at both widths and in both styles. Two things differed and are fixed: a rounding error in the progress percentage, and plain posts that got a placeholder book cover.
  • WordPress: wp-dev.sh check reports 0 REQUIRED, 0 WARNING and 0 RECOMMENDED. check-pages.cjs passes 22 of 22 page checks in both styles.
  • heavy act pull_request -W .github/workflows/ci.yml passed all five jobs, the new jekyll job included ("All 18 checks passed").

Not in this PR

Each of these needs the owner: creating and pushing listofbooks-net/jekyll-theme-readerly and listofbooks-net/jekyll-theme-readerly-starter, tags, demo hosting, the jekyllthemes.io submission, and running publish-jekyll.sh.

Where this differs from the design contract

  • intro-stats replaces a separate stats section, because the design draws the statistics inside the intro block.
  • One shelves section replaces shelf-read, shelf-want and shelf-dnf, because the design wraps the three shelves in one section. A shelf hides with shelves: {dnf: false}.
  • not-found is a fixed layout, not a list of sections, because the design puts both blocks in one wrapper.
  • The starter has no about.md, so it publishes no placeholder content.
  • Check builds delete the site's remote_theme line and load the theme as a local gem. Real remote_theme downloads always use HTTPS from GitHub, so the checks cannot fake one offline. publish-jekyll.sh builds the starter against the real download after it pushes.
  • Strict Liquid comes from the shared check overlay for every site, and the demo and sparse configs also set it. There is no separate lint for Jekyll 4 filters, because the strict Pages build already fails on an unknown filter.

Fonts move to design/assets/fonts and tokens.json describes their faces.
build-tokens.mjs now writes design/assets/css/fonts.css, the theme.json
fontFace entries (byte-identical to before), the WordPress font copies,
and the Jekyll stylesheet, script, fonts and images. The design pages load
the bundled fonts instead of Google Fonts, and the demo-bar rules move to
design/assets/css/demo.css so no port ships them.
Layouts and includes print the design pages' markup, and the stylesheet,
script and fonts are the generated copies of design/. A review is a post
with flat book keys; _data/reading_log.yml holds unreviewed books with the
same keys. The home, author and reading-log layouts are ordered lists of
section includes that a page can override with sections:. Every section
prints nothing when its data is missing. The footer credit lives in one
include that a site removes by overriding it with an empty file.
The demo is Marginalia, the design pages' book blog, so it doubles as the
markup parity fixture. The starter is the template repository for new
GitHub Pages sites; its example review is a draft, so it publishes nothing.
…k the output

tools/jekyll-dev builds the demo, the starter and three fixtures on the
github-pages 232 gem set (Jekyll 3.10, --safe) and on Jekyll 4.4, failing
on any build output. check-builds.mjs then requires equal HTML on both
engines, resolvable links under a baseurl, markup parity with the design
pages, and the browser checks of check-pages.cjs, which now takes a page
map. A new CI job runs it all through Docker, as php-lint does.
publish-jekyll.sh splits jekyll/theme and jekyll/starter into their mirror
repositories and proves the starter builds with the real remote_theme. It
pushes, so only an operator runs it.
…lder covers

A post with no cover, book author, rating or status is an article, not a
book. It no longer fills the 'Latest review' card or gets a typeset book
cover in the grid. Genre names on a site with no archive page keep the
link styling, as an <a> without href, so the genre list keeps its leaders.
@phoduke
phoduke merged commit acaa7d9 into main Nov 12, 2026
5 checks passed
@phoduke
phoduke deleted the feat/jekyll-theme branch November 12, 2026 04:00
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