The Quartz 5 site (opens in a new tab) looked straightforward. Until, I started treating it like a real published system instead of a pleasant little garden experiment. That is usually when the interesting parts show up: the separation between infrastructure, content, modifications, and the question of how to keep upgrades possible without turning the whole thing into a bespoke fork.
This is the cleaned-up version of the modification work behind mind.ruhanirabin.com. I am keeping the examples public-safe, so all hostnames, paths, and site values below are sample values only. This digital garden (opens in a new tab) is hosted with Cloudflare Pages.
What I was trying to build
The goal was not just to “run Quartz” and get it done with. The goal was to run a maintainable Quartz 5 use for a public digital garden while keeping a clean boundary between:
- Authored content owned by the vault workflow
- Infrastructure-owned Quartz configuration
- Deployed site behavior
- Comments and analytics integrations
- Future upgrades without painful merge shenanigans
🧱 If you let everything blur together, the next Quartz update becomes a rabbit hole I won’t be able to dig myself out from.
The repository and working model
The setup used a dedicated infrastructure worktree alongside the authoring vault.
Repository: https://github.com/example/digital-garden-quartzInfrastructure worktree: /home/example/git-projects/digital-garden-quartz-infraAuthoring vault: ~/git-projects/digital-garden-quartzIntegration branch: v5Production site: https://mind.ruhanirabin.com/Hosting: Cloudflare PagesThe important part is not the exact names. It is the ownership split.
Ownership boundary
- The authoring workflow owns published
content/**,templates/**, and.obsidian/** - Quartz Syncer (opens in a new tab) publishes content directly from Obsidian (opens in a new tab) using a Git token to the integration branch as its bot identity
- Infrastructure branches own Quartz configuration,
quartz/**, package files, deployment files, repository docs, and static assets outside the vault-owned paths - Infrastructure changes start from the latest integration branch and move through pull requests
npx quartz syncis not part of this workflow- content repo and infrastructure repo are a checkout of the same head but work on different purposes. Obsidian uses one for content. I use the other one for infra related changes.
That last line saved me from future confusion. I wanted the content workflow and the infrastructure workflow separately, because once they merge too early, nobody remembers which change came from where.
The site-level changes
The site itself was not vanilla Quartz anymore. It had a few local modifications that were first-class usability improvements.
SPA navigation stayed enabled
I left SPA navigation enabled so Quartz can open internal links without a full page reload. The comments component listens for those page changes so each page can load its own thread.
The footer was customized
I added a site-local footer so external links behaved safely and still used noopener noreferrer.
That sounds small. It is. But small changes like that are the kind people notice only when they are missing.
Analytics and comments were self-hosted
The site used self-hosted services instead of default third-party dependence:
- Umami analytics self-hosted at
https://um.example.net - Remark42 comments self-hosted at
https://remark.example.net - site namespace
digital-mind
Again, those URLs are sample values here. Both services were wired into the Quartz deployment as local infrastructure choices rather than loose add-ons.
Add Remark42 without forking Quartz core

I couldn’t find a guide for Quartz 5, and the GitHub plugin I found was already more than two years old. I registered my local Remark42 component under Quartz’s existing Comments key and put it in the afterBody slot. That let me keep using Quartz’s layout rules without editing core.
On the first load, the component sets window.remark_config before it loads embed.mjs. If the API is still loading, the component waits for REMARK42::ready. When Quartz changes pages, it cleans up the old instance and sets up comments for the new page if there’s a comments container. See the Remark42 SPA guide (opens in a new tab) for the widget lifecycle.
I use no_footer: true in the shared config so Remark42 hides its footer on the first page and after navigation. To skip comments on a page, set comments: false in its frontmatter.
The homepage override
The homepage got a local Recent Notes component override. It rendered two build-time two-column islands after the authored Markdown and before comments:
- five recently updated garden pages
- five recent fixes
This usability did a few practical things:
- marked only the first item in each list as
Latest - preserved internal-link popovers
- stacked from two columns to one at the existing
800pxmobile breakpoint
That kept the homepage useful without making it look like it had wandered out of a dashboard theme shop.

Remark42 deployment details
Remark42 ran in Docker Compose under EasyPanel with EasyPanel-managed SSL.
The core backend settings were:
SITE=digital-mindALLOWED_HOSTS='self',https://mind.ruhanirabin.comAUTH_SAME_SITE=noneSet site_id in the frontend config to the same value as SITE on the server. Both are digital-mind in this example.
If you set ALLOWED_HOSTS, include the live origin of the site that embeds comments. Here that’s https://mind.ruhanirabin.com. The 'self' entry allows pages on the Remark42 server’s own origin to embed the iframe. See the Remark42 configuration reference (opens in a new tab).
To share one Remark42 server across several sites, add a SITE value for each one, set the corresponding frontend site_id, and include each site’s origin in the allowlist.
Keep comment data, secrets, administrator credentials, and backups out of the public repository.
Email and administration came later
Email authentication, reply subscriptions, and per-comment admin notifications were all separate operational concerns, even though they lived in the same system.
The later runbook for that setup covers the full SMTP and moderator workflow. This prequel only needs the structural part:
- anonymous access stayed enabled
- email features were planned as independent toggles
- moderator access would use the exact email-authenticated Remark42 user ID
- SMTP credentials and signing secrets stayed in EasyPanel, not in the public repo
What changed over time
This evolved through a series of focused pull requests rather than one giant rewrite.
- added the local Remark42 component, scoped styling, SPA cleanup, and theme synchronization
- integrated the component through Quartz’s YAML-resolved Comments layout slot
- replaced the child
<noscript>element with plain loading text so Remark42 would create an iframe correctly - documented the durable SilverBullet note path and automation handoff rules
- treated generated SilverBullet service and inventory pages as read-only output
- enabled the documented
no_footeroption in the shared SPA-aware configuration - added the homepage-only recent-content islands
- refined dark-mode contrast and interaction feedback without changing light-mode resting colors
That list sounds neat now. It felt less neat while I was doing it.
Verification that mattered
The useful checks were the boring ones:
- TypeScript and Prettier checks passed for the changed code
- Quartz builds completed successfully
- the generated output included the Remark42 container on the rendered pages
- live browser checks confirmed the comment iframe loaded correctly
- live requests for the iframe document, configuration, authentication status, and comment lookup returned HTTP 200
- the final deployment rendered a visible Remark42 iframe on the production site
The point of the verification was not to admire the build system. It was to make sure the site still worked after the pieces were separated.
Why keeping infrastructure intact
This part turned out to be more important than I expected.
By keeping the Quartz site changes inside infrastructure-owned files, I could keep the authoring workflow and the site runtime from stepping on each other. That made future upgrades less risky and kept the content system from becoming a quiet hostage situation.
It also made the later Remark42 email/admin work much easier to reason about, because the comment system was already integrated as a site capability rather than a one-off hack.
What I would keep doing
If I were building this again, I would keep the same general rules:
- separate vault-owned content from infrastructure-owned code
- keep comments as a local component
- keep analytics and comments self-hosted where practical
- preserve the upgrade path
- treat sample values as sample values in public notes
The short version is that Quartz can stay close to origin, flexible if you resist the urge to glue everything together with hope.
Is that the end? No, it is only the beginning.
This was a documentation of my 9 day journey with it, many more to come.
Comments
Loading comments…