Skip to content

Remote-Theme Consumer Checklist

What you'll do: wire up the files and config that GitHub Pages does not inherit when you consume Zer0-Mistakes via remote_theme, so search, navigation, comments, and internal links all work.

Why this is needed

remote_theme only delivers _layouts/, _includes/, _sass/, and assets/. It does not deliver _config.yml, _data/, _plugins/, or any root / pages/ files. GitHub Pages additionally runs Jekyll in safe: true mode, which ignores _plugins/*.rb — so every custom generator in this theme (search, sitemap, author pages, content statistics, preview images) never runs on a Pages build of a consumer site.

The result is a chain of silent degradations. The checklist below is the shortest path through all of them.

Building outside GitHub Pages? If you run your own CI instead of Pages, see the Safe-Mode Build Overlay recipe — it reproduces Pages' plugin-stripping behaviour so your custom build matches production.

Prerequisites

  • A GitHub repository with Pages enabled
  • remote_theme: "bamr87/zer0-mistakes" in your _config.yml

The checklist

1. Add jekyll-include-cache to your plugins:

_layouts/root.html uses {% raw %}{% include_cached %}{% endraw %}. Without the plugin, the first build dies on Unknown tag 'include_cached'.

# _config.yml
plugins:
  - jekyll-include-cache

2. Re-declare structure in your _config.yml

None of these are inherited from the theme — declare your own: collections, defaults, permalink, theme_skin, theme_color, theme_background.

The favicon: block, by contrast, is entirely optional: favicon.theme_color_light / favicon.theme_color_dark fall back to the theme's surface colors (#ffffff / #212529), and the theme-color tags are emitted even when you declare nothing. Without favicon.ico, the theme links a root /favicon.ico, /favicon.png or /favicon.svg only if your site actually ships that file (none → no icon link, rather than a 404 on every page). Set favicon.ico: /path/to/icon to point it at an icon kept elsewhere. Likewise, tag and category badges in the page intro link to /tags/ only when your site has that page (or sets tags_page:); otherwise they render as plain labels.

3. ⚠️ Do not copy the theme's _config.yml wholesale

The theme's config ships a live google_analytics: ID and a PostHog api_key:. Copying them sends your visitors' analytics to the theme author. Strip or replace the analytics and identity blocks, and leave posthog / ai_chat off unless you own the project and deploy the proxy.

4. Commit your own _data/

At minimum:

  • _data/navigation/main.yml — without it the navbar is empty.
  • _data/ui-text.yml — read as site.data.ui by the footer, breadcrumbs, and search modal; without it labels are blank.
  • _data/authors.yml — without it bylines and author cards have no data.

Vendored _data/ does not float with remote_theme. The theme also reads two registries it owns: _data/theme_skins.yml (skin order and default) and _data/theme_backgrounds.yml (each skin's colors and background assets). A Pages site gets them only from a copy it commits. Without a copy the theme falls back to built-in defaults. With one, the copy stays as old as the day you made it, while the floating remote_theme keeps your layouts current. A fix the theme makes to its data, such as the dark and contrast skins added in #240, never reaches a stale copy, and _data/ui-text.yml falls behind the same way whenever the theme adds a label.

Re-run the consumer audit after every theme update. From a checkout of bamr87/zer0-mistakes:

./scripts/bin/audit-consumer --consumer-path /path/to/your-site                  # report
./scripts/bin/audit-consumer --consumer-path /path/to/your-site --fix --dry-run  # preview the refresh
./scripts/bin/audit-consumer --consumer-path /path/to/your-site --fix            # refresh STALE copies
  • STALE — your copy of a theme registry differs from the theme's. --fix replaces it with the theme's copy. If you changed it on purpose, list it in .theme-overrides.yml and it reads DIFFERS_JUSTIFIED instead. STALE fails --strict.
  • MISSING — you have no copy. The theme falls back to its built-in defaults, so this is informational. --fix copies the theme's file.
  • MISSING_KEYS — your _data/ui-text.yml lacks labels the theme's English (en:) block has. The audit lists them. Add them in your own wording: --fix never edits this file, and MISSING_KEYS never fails --strict.

5. Hand-author /search.json and /sitemap/

Both endpoints are produced by _plugins/search_and_sitemap_generator.rb, which Pages skips in safe mode — and the committed fallback stubs are not delivered by remote_theme. So the navbar search returns nothing and /sitemap/ 404s.

The search layout and _includes/search-data.json are delivered, so add a single file in your repo root:

# /search.json
---
layout: search
permalink: /search.json
sitemap: false
---

Add a /sitemap/ page too (or rely on the jekyll-sitemap plugin's /sitemap.xml — the footer falls back to it automatically when no /sitemap/ page exists).

6. Author profile pages 404 unless you commit them

_plugins/author_pages_generator.rb is plugin-only on Pages. The theme chrome no longer links to author profiles that don't exist in your build, so empty bylines degrade gracefully — but if you want /authors/:key/ pages, commit them yourself.

7. Statistics pages render empty

_plugins/content_statistics_generator.rb is plugin-only and the data file isn't delivered. Don't rely on the stats dashboard on a pure remote-theme Pages build.

8. Don't add jekyll-mermaid

It isn't on the GitHub Pages plugin whitelist. The theme renders Mermaid client-side from a vendored bundle already — adding the plugin just breaks the build.

9. Turn ai_chat and posthog off

Both ship enabled in the theme config. Leave them off unless you deploy the chat proxy / own the analytics project. See item 3.

10. Use the correctly-spelled giscus: key

Comments read site.giscus (and site.giscus.enabled). Define your block under giscus: — a misspelling silently disables comments with no error.

# _config.yml
giscus:
  enabled: true
  data-repo-id: "..."
  data-category-id: "..."

The theme chrome links to a few section pages it assumes exist. When your site puts them elsewhere (or doesn't have them), point the theme at the right base or turn the feature off — so nothing 404s:

Setting Default Controls
category_base /news Base for post category badge links
tags_page /tags/ Tag badges link here only if the page exists
obsidian_graph_url /docs/obsidian/graph/ "Full graph" link; hidden if the page is absent
local_graph: false (in defaults) — Disables the local-graph FAB/panel entirely

Tag badges, the local-graph "Full graph" link, the breadcrumb collection-root crumb, and author byline links are all existence-gated: when the target page isn't in your build they render as plain text instead of broken links.

Verify

  • Open the navbar search and type — results appear (item 5).
  • The navbar and footer show your labels and links (items 2, 4).
  • View source on a post — no google_analytics ID or PostHog key you didn't set (item 3).
  • Run a link checker over the built _site — no theme-injected 404s.
  • Run audit-consumer against your repo after each theme update — no STALE vendored data (item 4).

See also